mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Option to disable static files auth check/s3 proxy
This commit is contained in:
@@ -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:`
|
||||
|
||||
Reference in New Issue
Block a user