diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-29 18:30:11 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-29 18:30:11 +0200 |
commit | 02756fbd11190e75b8bed9fad5751027e2e0de49 (patch) | |
tree | f90d6182fbb6226cb319bd0cb759ec0ec3f05512 /server/initializers/constants.ts | |
parent | a20776fcbbe488475238228716cad370056ad5bd (diff) | |
download | PeerTube-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.ts | 5 |
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 | } |
392 | const STATIC_DOWNLOAD_PATHS = { | ||
393 | TORRENTS: '/download/torrents/', | ||
394 | VIDEOS: '/download/videos/' | ||
395 | } | ||
392 | 396 | ||
393 | // Cache control | 397 | // Cache control |
394 | let STATIC_MAX_AGE = '30d' | 398 | let 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 |