aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/server-commands/server/object-storage-command.ts16
1 files changed, 15 insertions, 1 deletions
diff --git a/shared/server-commands/server/object-storage-command.ts b/shared/server-commands/server/object-storage-command.ts
index 405e1b043..a1fe4f0f7 100644
--- a/shared/server-commands/server/object-storage-command.ts
+++ b/shared/server-commands/server/object-storage-command.ts
@@ -81,7 +81,13 @@ export class ObjectStorageCommand extends AbstractCommand {
81 81
82 // --------------------------------------------------------------------------- 82 // ---------------------------------------------------------------------------
83 83
84 static getDefaultScalewayConfig (serverNumber: number) { 84 static getDefaultScalewayConfig (options: {
85 serverNumber: number
86 enablePrivateProxy?: boolean // default true
87 privateACL?: 'private' | 'public-read' // default 'private'
88 }) {
89 const { serverNumber, enablePrivateProxy = true, privateACL = 'private' } = options
90
85 return { 91 return {
86 object_storage: { 92 object_storage: {
87 enabled: true, 93 enabled: true,
@@ -90,6 +96,14 @@ export class ObjectStorageCommand extends AbstractCommand {
90 96
91 credentials: this.getScalewayCredentialsConfig(), 97 credentials: this.getScalewayCredentialsConfig(),
92 98
99 upload_acl: {
100 private: privateACL
101 },
102
103 proxy: {
104 proxify_private_files: enablePrivateProxy
105 },
106
93 streaming_playlists: { 107 streaming_playlists: {
94 bucket_name: this.DEFAULT_SCALEWAY_BUCKET, 108 bucket_name: this.DEFAULT_SCALEWAY_BUCKET,
95 prefix: `test:server-${serverNumber}-streaming-playlists:` 109 prefix: `test:server-${serverNumber}-streaming-playlists:`