From 9ab330b90decf4edf152ff8e1d2948c065766b2c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 19 Oct 2022 10:43:53 +0200 Subject: Use private ACL for private videos in s3 --- server/initializers/checker-after-init.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'server/initializers/checker-after-init.ts') diff --git a/server/initializers/checker-after-init.ts b/server/initializers/checker-after-init.ts index c83fef425..09e878eee 100644 --- a/server/initializers/checker-after-init.ts +++ b/server/initializers/checker-after-init.ts @@ -278,6 +278,14 @@ function checkObjectStorageConfig () { 'Object storage bucket prefixes should be set to different values when the same bucket is used for both types of video.' ) } + + if (!CONFIG.OBJECT_STORAGE.UPLOAD_ACL.PUBLIC) { + throw new Error('object_storage.upload_acl.public must be set') + } + + if (!CONFIG.OBJECT_STORAGE.UPLOAD_ACL.PRIVATE) { + throw new Error('object_storage.upload_acl.private must be set') + } } } -- cgit v1.2.3