aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-05-29 18:30:11 +0200
committerChocobozzz <me@florianbigard.com>2018-05-29 18:30:11 +0200
commit02756fbd11190e75b8bed9fad5751027e2e0de49 (patch)
treef90d6182fbb6226cb319bd0cb759ec0ec3f05512 /server/initializers/constants.ts
parenta20776fcbbe488475238228716cad370056ad5bd (diff)
downloadPeerTube-02756fbd11190e75b8bed9fad5751027e2e0de49.tar.gz
PeerTube-02756fbd11190e75b8bed9fad5751027e2e0de49.tar.zst
PeerTube-02756fbd11190e75b8bed9fad5751027e2e0de49.zip
Improve torrent/video download
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index a35306730..26ee3db47 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -389,6 +389,10 @@ const STATIC_PATHS = {
389 WEBSEED: '/static/webseed/', 389 WEBSEED: '/static/webseed/',
390 AVATARS: '/static/avatars/' 390 AVATARS: '/static/avatars/'
391} 391}
392const STATIC_DOWNLOAD_PATHS = {
393 TORRENTS: '/download/torrents/',
394 VIDEOS: '/download/videos/'
395}
392 396
393// Cache control 397// Cache control
394let STATIC_MAX_AGE = '30d' 398let STATIC_MAX_AGE = '30d'
@@ -493,6 +497,7 @@ export {
493 USER_PASSWORD_RESET_LIFETIME, 497 USER_PASSWORD_RESET_LIFETIME,
494 IMAGE_MIMETYPE_EXT, 498 IMAGE_MIMETYPE_EXT,
495 SCHEDULER_INTERVAL, 499 SCHEDULER_INTERVAL,
500 STATIC_DOWNLOAD_PATHS,
496 RATES_LIMIT, 501 RATES_LIMIT,
497 JOB_COMPLETED_LIFETIME, 502 JOB_COMPLETED_LIFETIME,
498 VIDEO_VIEW_LIFETIME 503 VIDEO_VIEW_LIFETIME