Make webdav namespace configurable across services

This commit is contained in:
Ishank Arora
2021-06-25 10:05:20 +02:00
parent 3e815601dd
commit 89f8320c74
10 changed files with 52 additions and 19 deletions
+7
View File
@@ -148,6 +148,13 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
EnvVars: []string{"OCIS_PUBLIC_URL", "OCIS_URL"},
Destination: &cfg.OcisPublicURL,
},
&cli.StringFlag{
Name: "webdav-namespace",
Value: flags.OverrideDefaultString(cfg.WebdavNamespace, "/home"),
Usage: "Namespace prefix for the /webdav endpoint",
EnvVars: []string{"STORAGE_WEBDAV_NAMESPACE"},
Destination: &cfg.WebdavNamespace,
},
}
}