Skip to content

Commit

Permalink
Configure the provider id of the shares storage provider (#3723)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduffeck authored May 13, 2022
1 parent dfa3cea commit 0e7de0f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions extensions/storage-shares/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ type Config struct {

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"`
SharesProviderEndpoint string `yaml:"user_share_provider_endpoint" env:"STORAGE_SHARES_USER_SHARE_PROVIDER_ENDPOINT"`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func DefaultConfig() *config.Config {
Reva: &config.Reva{
Address: "127.0.0.1:9142",
},
MountID: "7639e57c-4433-4a12-8201-722fd0009154",
ReadOnly: false,
SharesProviderEndpoint: "localhost:9150",
}
Expand Down
1 change: 1 addition & 0 deletions extensions/storage-shares/pkg/revaconfig/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func StorageSharesConfigFromStruct(cfg *config.Config) map[string]interface{} {
"services": map[string]interface{}{
"sharesstorageprovider": map[string]interface{}{
"usershareprovidersvc": cfg.SharesProviderEndpoint,
"mount_id": cfg.MountID,
},
},
},
Expand Down

0 comments on commit 0e7de0f

Please sign in to comment.