Configure the provider id of the shares storage provider (#3723)
This commit is contained in:
1 parent
dfa3ceaa22
commit
0e7de0faf3
3 files changed
+3
No files matched your search
@@ -20,6 +20,7 @@ type Config struct {
|
|||||||
|
|
||||||
SkipUserGroupsInToken bool `yaml:"skip_user_groups_in_token" env:"STORAGE_SHARES_SKIP_USER_GROUPS_IN_TOKEN"`
|
SkipUserGroupsInToken bool `yaml:"skip_user_groups_in_token" env:"STORAGE_SHARES_SKIP_USER_GROUPS_IN_TOKEN"`
|
||||||
|
|
||||||
|
MountID string `yaml:"mount_id" env:"STORAGE_SHARES_MOUNT_ID"`
|
||||||
ReadOnly bool `yaml:"readonly" env:"STORAGE_SHARES_READ_ONLY"`
|
ReadOnly bool `yaml:"readonly" env:"STORAGE_SHARES_READ_ONLY"`
|
||||||
SharesProviderEndpoint string `yaml:"user_share_provider_endpoint" env:"STORAGE_SHARES_USER_SHARE_PROVIDER_ENDPOINT"`
|
SharesProviderEndpoint string `yaml:"user_share_provider_endpoint" env:"STORAGE_SHARES_USER_SHARE_PROVIDER_ENDPOINT"`
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ func DefaultConfig() *config.Config {
|
|||||||
Reva: &config.Reva{
|
Reva: &config.Reva{
|
||||||
Address: "127.0.0.1:9142",
|
Address: "127.0.0.1:9142",
|
||||||
},
|
},
|
||||||
|
MountID: "7639e57c-4433-4a12-8201-722fd0009154",
|
||||||
ReadOnly: false,
|
ReadOnly: false,
|
||||||
SharesProviderEndpoint: "localhost:9150",
|
SharesProviderEndpoint: "localhost:9150",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ func StorageSharesConfigFromStruct(cfg *config.Config) map[string]interface{} {
|
|||||||
"services": map[string]interface{}{
|
"services": map[string]interface{}{
|
||||||
"sharesstorageprovider": map[string]interface{}{
|
"sharesstorageprovider": map[string]interface{}{
|
||||||
"usershareprovidersvc": cfg.SharesProviderEndpoint,
|
"usershareprovidersvc": cfg.SharesProviderEndpoint,
|
||||||
|
"mount_id": cfg.MountID,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user