mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 04:09:40 -06:00
Functionality to map home directory to different storage providers
This commit is contained in:
@@ -115,6 +115,7 @@ func Gateway(cfg *config.Config) *cli.Command {
|
||||
"datagateway": cfg.Reva.DataGateway.PublicURL,
|
||||
"transfer_shared_secret": cfg.Reva.TransferSecret,
|
||||
"transfer_expires": cfg.Reva.TransferExpires,
|
||||
"home_mapping": cfg.Reva.Gateway.HomeMapping,
|
||||
},
|
||||
"authregistry": map[string]interface{}{
|
||||
"driver": "static",
|
||||
|
||||
@@ -20,9 +20,10 @@ type Gateway struct {
|
||||
Port
|
||||
CommitShareToStorageGrant bool
|
||||
CommitShareToStorageRef bool
|
||||
DisableHomeCreationOnLogin bool
|
||||
ShareFolder string
|
||||
LinkGrants string
|
||||
DisableHomeCreationOnLogin bool
|
||||
HomeMapping string
|
||||
}
|
||||
|
||||
// StorageRegistry defines the available storage registry configuration
|
||||
|
||||
@@ -97,6 +97,13 @@ func GatewayWithConfig(cfg *config.Config) []cli.Flag {
|
||||
EnvVars: []string{"STORAGE_GATEWAY_DISABLE_HOME_CREATION_ON_LOGIN"},
|
||||
Destination: &cfg.Reva.Gateway.DisableHomeCreationOnLogin,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "storage-home-mapping",
|
||||
Value: "",
|
||||
Usage: "mapping template for user home paths to user-specific mount points",
|
||||
EnvVars: []string{"STORAGE_GATEWAY_HOME_MAPPING"},
|
||||
Destination: &cfg.Reva.Gateway.HomeMapping,
|
||||
},
|
||||
|
||||
// other services
|
||||
|
||||
|
||||
Reference in New Issue
Block a user