diff options
Diffstat (limited to 'server/initializers/config.ts')
-rw-r--r-- | server/initializers/config.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts index 30a9823b9..0e684eef8 100644 --- a/server/initializers/config.ts +++ b/server/initializers/config.ts | |||
@@ -73,6 +73,26 @@ const CONFIG = { | |||
73 | PLUGINS_DIR: buildPath(config.get<string>('storage.plugins')), | 73 | PLUGINS_DIR: buildPath(config.get<string>('storage.plugins')), |
74 | CLIENT_OVERRIDES_DIR: buildPath(config.get<string>('storage.client_overrides')) | 74 | CLIENT_OVERRIDES_DIR: buildPath(config.get<string>('storage.client_overrides')) |
75 | }, | 75 | }, |
76 | OBJECT_STORAGE: { | ||
77 | ENABLED: config.get<boolean>('object_storage.enabled'), | ||
78 | MAX_UPLOAD_PART: bytes.parse(config.get<string>('object_storage.max_upload_part')), | ||
79 | ENDPOINT: config.get<string>('object_storage.endpoint'), | ||
80 | REGION: config.get<string>('object_storage.region'), | ||
81 | CREDENTIALS: { | ||
82 | ACCESS_KEY_ID: config.get<string>('object_storage.credentials.access_key_id'), | ||
83 | SECRET_ACCESS_KEY: config.get<string>('object_storage.credentials.secret_access_key') | ||
84 | }, | ||
85 | VIDEOS: { | ||
86 | BUCKET_NAME: config.get<string>('object_storage.videos.bucket_name'), | ||
87 | PREFIX: config.get<string>('object_storage.videos.prefix'), | ||
88 | BASE_URL: config.get<string>('object_storage.videos.base_url') | ||
89 | }, | ||
90 | STREAMING_PLAYLISTS: { | ||
91 | BUCKET_NAME: config.get<string>('object_storage.streaming_playlists.bucket_name'), | ||
92 | PREFIX: config.get<string>('object_storage.streaming_playlists.prefix'), | ||
93 | BASE_URL: config.get<string>('object_storage.streaming_playlists.base_url') | ||
94 | } | ||
95 | }, | ||
76 | WEBSERVER: { | 96 | WEBSERVER: { |
77 | SCHEME: config.get<boolean>('webserver.https') === true ? 'https' : 'http', | 97 | SCHEME: config.get<boolean>('webserver.https') === true ? 'https' : 'http', |
78 | WS: config.get<boolean>('webserver.https') === true ? 'wss' : 'ws', | 98 | WS: config.get<boolean>('webserver.https') === true ? 'wss' : 'ws', |