mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-27 06:59:18 -06:00
storage-publiclink config docs
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user