mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-09-19 10:17:41 -04:00
drop STORAGE_USERS_EXPOSE_DATA_SERVER env var
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
1 parent
2830c4eed5
commit
fff84b844f
3 files changed
+1
-3
No files matched your search
@@ -33,7 +33,6 @@ type Config struct {
|
||||
FilemetadataCache FilemetadataCache `yaml:"filemetadata_cache"`
|
||||
IDCache IDCache `yaml:"id_cache"`
|
||||
MountID string `yaml:"mount_id" env:"STORAGE_USERS_MOUNT_ID" desc:"Mount ID of this storage." introductionVersion:"1.0.0"`
|
||||
ExposeDataServer bool `yaml:"expose_data_server" env:"STORAGE_USERS_EXPOSE_DATA_SERVER" desc:"Exposes the data server directly to users and bypasses the data gateway. Ensure that the data server address is reachable by users." introductionVersion:"1.0.0"`
|
||||
ReadOnly bool `yaml:"readonly" env:"STORAGE_USERS_READ_ONLY" desc:"Set this storage to be read-only." introductionVersion:"1.0.0"`
|
||||
UploadExpiration int64 `yaml:"upload_expiration" env:"STORAGE_USERS_UPLOAD_EXPIRATION" desc:"Duration in seconds after which uploads will expire. Note that when setting this to a low number, uploads could be cancelled before they are finished and return a 403 to the user." introductionVersion:"1.0.0"`
|
||||
Tasks Tasks `yaml:"tasks"`
|
||||
|
||||
@@ -87,7 +87,6 @@ func DefaultConfig() *config.Config {
|
||||
Reva: shared.DefaultRevaConfig(),
|
||||
DataServerURL: "http://localhost:9158/data",
|
||||
DataGatewayURL: "http://localhost:9140/data",
|
||||
ExposeDataServer: true,
|
||||
RevaGatewayGRPCAddr: "127.0.0.1:9142",
|
||||
TransferExpires: 86400,
|
||||
UploadExpiration: 24 * 60 * 60,
|
||||
|
||||
@@ -36,7 +36,7 @@ func StorageUsersConfigFromStruct(cfg *config.Config) map[string]any {
|
||||
"driver": cfg.Driver,
|
||||
"drivers": StorageProviderDrivers(cfg),
|
||||
"mount_id": cfg.MountID,
|
||||
"expose_data_server": cfg.ExposeDataServer,
|
||||
"expose_data_server": true,
|
||||
"data_server_url": cfg.DataServerURL,
|
||||
"upload_expiration": cfg.UploadExpiration,
|
||||
"events": map[string]any{
|
||||
|
||||
Reference in new issue
Block a user