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
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:`