aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/config.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-21 15:59:57 +0100
committerChocobozzz <me@florianbigard.com>2020-01-21 16:46:59 +0100
commitbe7ca0c6b9c51c639bac7d2da94599893e7b1c01 (patch)
tree328eadc393cd7b052f8366f888e968b561ad86c2 /server/initializers/config.ts
parent5e0171daaa00d7d1409b1d2408f03468e895459b (diff)
downloadPeerTube-be7ca0c6b9c51c639bac7d2da94599893e7b1c01.tar.gz
PeerTube-be7ca0c6b9c51c639bac7d2da94599893e7b1c01.tar.zst
PeerTube-be7ca0c6b9c51c639bac7d2da94599893e7b1c01.zip
Use a proxy for youtube-dl to avoid travis errors
Diffstat (limited to 'server/initializers/config.ts')
-rw-r--r--server/initializers/config.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts
index 95b069533..7fd77f3e8 100644
--- a/server/initializers/config.ts
+++ b/server/initializers/config.ts
@@ -191,7 +191,11 @@ const CONFIG = {
191 IMPORT: { 191 IMPORT: {
192 VIDEOS: { 192 VIDEOS: {
193 HTTP: { 193 HTTP: {
194 get ENABLED () { return config.get<boolean>('import.videos.http.enabled') } 194 get ENABLED () { return config.get<boolean>('import.videos.http.enabled') },
195 PROXY: {
196 get ENABLED () { return config.get<boolean>('import.videos.http.proxy.enabled') },
197 get URL () { return config.get<string>('import.videos.http.proxy.url') }
198 }
195 }, 199 },
196 TORRENT: { 200 TORRENT: {
197 get ENABLED () { return config.get<boolean>('import.videos.torrent.enabled') } 201 get ENABLED () { return config.get<boolean>('import.videos.torrent.enabled') }