mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-24 04:58:31 -05:00
change default ocdav namespace
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
@@ -187,8 +187,8 @@ func Frontend(cfg *config.Config) *cli.Command {
|
||||
"prefix": "",
|
||||
"chunk_folder": "/var/tmp/revad/chunks",
|
||||
"gateway": cfg.Reva.Gateway.URL,
|
||||
"files_namespace": "/",
|
||||
"webdav_namespace": "/",
|
||||
"files_namespace": cfg.Reva.OCDav.NamespaceJail,
|
||||
"webdav_namespace": cfg.Reva.OCDav.NamespaceJail,
|
||||
},
|
||||
"ocs": map[string]interface{}{
|
||||
"gateway": cfg.Reva.Gateway.URL,
|
||||
|
||||
@@ -178,6 +178,11 @@ type LDAPSchema struct {
|
||||
CN string
|
||||
}
|
||||
|
||||
// OCDav defines the available ocdav configuration.
|
||||
type OCDav struct {
|
||||
NamespaceJail string
|
||||
}
|
||||
|
||||
// Reva defines the available reva configuration.
|
||||
type Reva struct {
|
||||
// JWTSecret used to sign jwt tokens between services
|
||||
@@ -186,6 +191,7 @@ type Reva struct {
|
||||
TransferExpires int
|
||||
OIDC OIDC
|
||||
LDAP LDAP
|
||||
OCDav OCDav
|
||||
Storages StorageConfig
|
||||
// Ports are used configure which services to start on which port
|
||||
Frontend Port
|
||||
|
||||
@@ -89,6 +89,16 @@ func FrontendWithConfig(cfg *config.Config) []cli.Flag {
|
||||
Destination: &cfg.Reva.TransferSecret,
|
||||
},
|
||||
|
||||
// OCDav
|
||||
|
||||
&cli.StringFlag{
|
||||
Name: "webdav-namespace-jail",
|
||||
Value: "/home/",
|
||||
Usage: "Namespace prefix for the webdav endpoints /dav/files and /webdav",
|
||||
EnvVars: []string{"WEBDAV_NAMESPACE_JAIL"},
|
||||
Destination: &cfg.Reva.OCDav.NamespaceJail,
|
||||
},
|
||||
|
||||
// OIDC
|
||||
|
||||
&cli.StringFlag{
|
||||
|
||||
Reference in New Issue
Block a user