aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/config.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-10-19 10:43:53 +0200
committerChocobozzz <chocobozzz@cpy.re>2022-10-24 14:48:24 +0200
commit9ab330b90decf4edf152ff8e1d2948c065766b2c (patch)
tree29d924f50f7307e8e828a57ecb9ea78623487ce0 /server/initializers/config.ts
parent3545e72c686ff1725bbdfd8d16d693e2f4aa75a3 (diff)
downloadPeerTube-9ab330b90decf4edf152ff8e1d2948c065766b2c.tar.gz
PeerTube-9ab330b90decf4edf152ff8e1d2948c065766b2c.tar.zst
PeerTube-9ab330b90decf4edf152ff8e1d2948c065766b2c.zip
Use private ACL for private videos in s3
Diffstat (limited to 'server/initializers/config.ts')
-rw-r--r--server/initializers/config.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts
index a5a0d4e46..ab5e645ad 100644
--- a/server/initializers/config.ts
+++ b/server/initializers/config.ts
@@ -118,7 +118,10 @@ const CONFIG = {
118 MAX_UPLOAD_PART: bytes.parse(config.get<string>('object_storage.max_upload_part')), 118 MAX_UPLOAD_PART: bytes.parse(config.get<string>('object_storage.max_upload_part')),
119 ENDPOINT: config.get<string>('object_storage.endpoint'), 119 ENDPOINT: config.get<string>('object_storage.endpoint'),
120 REGION: config.get<string>('object_storage.region'), 120 REGION: config.get<string>('object_storage.region'),
121 UPLOAD_ACL: config.get<string>('object_storage.upload_acl'), 121 UPLOAD_ACL: {
122 PUBLIC: config.get<string>('object_storage.upload_acl.public'),
123 PRIVATE: config.get<string>('object_storage.upload_acl.private')
124 },
122 CREDENTIALS: { 125 CREDENTIALS: {
123 ACCESS_KEY_ID: config.get<string>('object_storage.credentials.access_key_id'), 126 ACCESS_KEY_ID: config.get<string>('object_storage.credentials.access_key_id'),
124 SECRET_ACCESS_KEY: config.get<string>('object_storage.credentials.secret_access_key') 127 SECRET_ACCESS_KEY: config.get<string>('object_storage.credentials.secret_access_key')