1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Add import http enabled configuration

This commit is contained in:
Chocobozzz 2018-08-03 11:10:31 +02:00
parent 7e5f9f001d
commit 5d08a6a74e
26 changed files with 385 additions and 12 deletions

View file

@ -65,6 +65,13 @@ async function getConfig (req: express.Request, res: express.Response, next: exp
transcoding: {
enabledResolutions
},
import: {
video: {
http: {
enabled: CONFIG.IMPORT.VIDEOS.HTTP.ENABLED
}
}
},
avatar: {
file: {
size: {
@ -225,6 +232,13 @@ function customConfig (): CustomConfig {
'720p': CONFIG.TRANSCODING.RESOLUTIONS[ '720p' ],
'1080p': CONFIG.TRANSCODING.RESOLUTIONS[ '1080p' ]
}
},
import: {
videos: {
http: {
enabled: CONFIG.IMPORT.VIDEOS.HTTP.ENABLED
}
}
}
}
}