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

Add config to disable storing lives in s3

This commit is contained in:
Chocobozzz 2024-02-26 16:12:16 +01:00
parent c2c2cd4121
commit 68d006b6fc
No known key found for this signature in database
GPG key ID: 583A612D890159BE
6 changed files with 67 additions and 5 deletions

View file

@ -29,7 +29,11 @@ export class ObjectStorageCommand {
return 'us-east-1'
}
getDefaultMockConfig () {
getDefaultMockConfig (options: {
storeLiveStreams?: boolean // default true
} = {}) {
const { storeLiveStreams = true } = options
return {
object_storage: {
enabled: true,
@ -39,7 +43,9 @@ export class ObjectStorageCommand {
credentials: ObjectStorageCommand.getMockCredentialsConfig(),
streaming_playlists: {
bucket_name: this.getMockStreamingPlaylistsBucketName()
bucket_name: this.getMockStreamingPlaylistsBucketName(),
store_live_streams: storeLiveStreams
},
web_videos: {