storage-publiclink config docs

This commit is contained in:
Willy Kloucek
2022-05-03 14:34:15 +02:00
parent f501814bef
commit d2edd6e98e
2 changed files with 3 additions and 9 deletions

View File

@@ -20,7 +20,6 @@ type Config struct {
SkipUserGroupsInToken bool `yaml:"-"`
AuthProvider AuthProvider `yaml:"auth_provider"`
StorageProvider StorageProvider `yaml:"storage_provider"`
Supervised bool `yaml:"-"`
@@ -57,11 +56,6 @@ type GRPCConfig struct {
Protocol string `yaml:"protocol" env:"STORAGE_PUBLICLINK_GRPC_PROTOCOL" desc:"The transport protocol of the grpc service."`
}
type AuthProvider struct {
GatewayEndpoint string
}
type StorageProvider struct {
MountID string
GatewayEndpoint string
MountID string `yaml:"mount_id" env:"STORAGE_PUBLICLINK_STORAGE_PROVIDER_MOUNT_ID"`
}

View File

@@ -27,13 +27,13 @@ func StoragePublicLinkConfigFromStruct(cfg *config.Config) map[string]interface{
"services": map[string]interface{}{
"publicstorageprovider": map[string]interface{}{
"mount_id": cfg.StorageProvider.MountID,
"gateway_addr": cfg.StorageProvider.GatewayEndpoint,
"gateway_addr": cfg.Reva.Address,
},
"authprovider": map[string]interface{}{
"auth_manager": "publicshares",
"auth_managers": map[string]interface{}{
"publicshares": map[string]interface{}{
"gateway_addr": cfg.AuthProvider.GatewayEndpoint,
"gateway_addr": cfg.Reva.Address,
},
},
},