diff options
author | Doug Luce <doug@github.con.com> | 2022-03-15 08:57:12 -0700 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2022-03-16 10:58:01 +0100 |
commit | f9915efa5ea0714178fc60d11a0d5434e7b1e600 (patch) | |
tree | cf2e7249a64a4af73a89aa19c755d5eec0ab9fe2 /server/initializers | |
parent | 60233e90d280eb865d396b30b63c0e88d13ca7db (diff) | |
download | PeerTube-f9915efa5ea0714178fc60d11a0d5434e7b1e600.tar.gz PeerTube-f9915efa5ea0714178fc60d11a0d5434e7b1e600.tar.zst PeerTube-f9915efa5ea0714178fc60d11a0d5434e7b1e600.zip |
Make object storage ACL configurable
Override this value to allow uploads to non-public S3
buckets. Otherwise "AccessDenied: Access Denied" errors will end up in
the log.
Fixes #4850
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/config.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts index 3aadd9cbd..1658298c5 100644 --- a/server/initializers/config.ts +++ b/server/initializers/config.ts | |||
@@ -114,6 +114,7 @@ const CONFIG = { | |||
114 | MAX_UPLOAD_PART: bytes.parse(config.get<string>('object_storage.max_upload_part')), | 114 | MAX_UPLOAD_PART: bytes.parse(config.get<string>('object_storage.max_upload_part')), |
115 | ENDPOINT: config.get<string>('object_storage.endpoint'), | 115 | ENDPOINT: config.get<string>('object_storage.endpoint'), |
116 | REGION: config.get<string>('object_storage.region'), | 116 | REGION: config.get<string>('object_storage.region'), |
117 | UPLOAD_ACL: config.get<string>('object_storage.upload_acl'), | ||
117 | CREDENTIALS: { | 118 | CREDENTIALS: { |
118 | ACCESS_KEY_ID: config.get<string>('object_storage.credentials.access_key_id'), | 119 | ACCESS_KEY_ID: config.get<string>('object_storage.credentials.access_key_id'), |
119 | SECRET_ACCESS_KEY: config.get<string>('object_storage.credentials.secret_access_key') | 120 | SECRET_ACCESS_KEY: config.get<string>('object_storage.credentials.secret_access_key') |