1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Option to disable static files auth check/s3 proxy

This commit is contained in:
Chocobozzz 2022-10-26 16:23:39 +02:00
parent 49e7e4d9ff
commit 5a122dddc5
No known key found for this signature in database
GPG key ID: 583A612D890159BE
11 changed files with 238 additions and 66 deletions

View file

@ -81,7 +81,13 @@ export class ObjectStorageCommand extends AbstractCommand {
// ---------------------------------------------------------------------------
static getDefaultScalewayConfig (serverNumber: number) {
static getDefaultScalewayConfig (options: {
serverNumber: number
enablePrivateProxy?: boolean // default true
privateACL?: 'private' | 'public-read' // default 'private'
}) {
const { serverNumber, enablePrivateProxy = true, privateACL = 'private' } = options
return {
object_storage: {
enabled: true,
@ -90,6 +96,14 @@ export class ObjectStorageCommand extends AbstractCommand {
credentials: this.getScalewayCredentialsConfig(),
upload_acl: {
private: privateACL
},
proxy: {
proxify_private_files: enablePrivateProxy
},
streaming_playlists: {
bucket_name: this.DEFAULT_SCALEWAY_BUCKET,
prefix: `test:server-${serverNumber}-streaming-playlists:`