diff options
author | Chocobozzz <me@florianbigard.com> | 2022-10-26 16:23:39 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-10-27 09:13:10 +0200 |
commit | 5a122dddc5aab1b2ae1843411032d5f392bdd216 (patch) | |
tree | 39778c4372c4b371f1294c94bf22d8a6e7a26456 /server/initializers/config.ts | |
parent | 49e7e4d9ffd16cba7a721f6d3d3203decf4f4b2c (diff) | |
download | PeerTube-5a122dddc5aab1b2ae1843411032d5f392bdd216.tar.gz PeerTube-5a122dddc5aab1b2ae1843411032d5f392bdd216.tar.zst PeerTube-5a122dddc5aab1b2ae1843411032d5f392bdd216.zip |
Option to disable static files auth check/s3 proxy
Diffstat (limited to 'server/initializers/config.ts')
-rw-r--r-- | server/initializers/config.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts index ab5e645ad..7652da24a 100644 --- a/server/initializers/config.ts +++ b/server/initializers/config.ts | |||
@@ -113,6 +113,9 @@ const CONFIG = { | |||
113 | CLIENT_OVERRIDES_DIR: buildPath(config.get<string>('storage.client_overrides')), | 113 | CLIENT_OVERRIDES_DIR: buildPath(config.get<string>('storage.client_overrides')), |
114 | WELL_KNOWN_DIR: buildPath(config.get<string>('storage.well_known')) | 114 | WELL_KNOWN_DIR: buildPath(config.get<string>('storage.well_known')) |
115 | }, | 115 | }, |
116 | STATIC_FILES: { | ||
117 | PRIVATE_FILES_REQUIRE_AUTH: config.get<boolean>('static_files.private_files_require_auth') | ||
118 | }, | ||
116 | OBJECT_STORAGE: { | 119 | OBJECT_STORAGE: { |
117 | ENABLED: config.get<boolean>('object_storage.enabled'), | 120 | ENABLED: config.get<boolean>('object_storage.enabled'), |
118 | MAX_UPLOAD_PART: bytes.parse(config.get<string>('object_storage.max_upload_part')), | 121 | MAX_UPLOAD_PART: bytes.parse(config.get<string>('object_storage.max_upload_part')), |
@@ -126,6 +129,9 @@ const CONFIG = { | |||
126 | ACCESS_KEY_ID: config.get<string>('object_storage.credentials.access_key_id'), | 129 | ACCESS_KEY_ID: config.get<string>('object_storage.credentials.access_key_id'), |
127 | SECRET_ACCESS_KEY: config.get<string>('object_storage.credentials.secret_access_key') | 130 | SECRET_ACCESS_KEY: config.get<string>('object_storage.credentials.secret_access_key') |
128 | }, | 131 | }, |
132 | PROXY: { | ||
133 | PROXIFY_PRIVATE_FILES: config.get<boolean>('object_storage.proxy.proxify_private_files') | ||
134 | }, | ||
129 | VIDEOS: { | 135 | VIDEOS: { |
130 | BUCKET_NAME: config.get<string>('object_storage.videos.bucket_name'), | 136 | BUCKET_NAME: config.get<string>('object_storage.videos.bucket_name'), |
131 | PREFIX: config.get<string>('object_storage.videos.prefix'), | 137 | PREFIX: config.get<string>('object_storage.videos.prefix'), |