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:
parent
49e7e4d9ff
commit
5a122dddc5
11 changed files with 238 additions and 66 deletions
|
@ -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:`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue