diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-14 11:39:06 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-14 11:39:06 +0200 |
commit | 37cd44d04f2ad4d90535d28340c78d8d85b31f18 (patch) | |
tree | d4a4185c285c83f1c0ffad6fae40e9f799c3b5ac /server/controllers/static.ts | |
parent | cf0c8ee588e37809d85ec1deec1e4fdfa0f122a5 (diff) | |
download | PeerTube-37cd44d04f2ad4d90535d28340c78d8d85b31f18.tar.gz PeerTube-37cd44d04f2ad4d90535d28340c78d8d85b31f18.tar.zst PeerTube-37cd44d04f2ad4d90535d28340c78d8d85b31f18.zip |
Remove deprecated torrent static route
Diffstat (limited to 'server/controllers/static.ts')
-rw-r--r-- | server/controllers/static.ts | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/server/controllers/static.ts b/server/controllers/static.ts index fe1629910..0d94cac9b 100644 --- a/server/controllers/static.ts +++ b/server/controllers/static.ts | |||
@@ -32,14 +32,6 @@ staticRouter.use(cors()) | |||
32 | Cors is very important to let other servers access torrent and video files | 32 | Cors is very important to let other servers access torrent and video files |
33 | */ | 33 | */ |
34 | 34 | ||
35 | // FIXME: deprecated in 3.2, use lazy-statics instead | ||
36 | // Due to historical reasons, we can't really remove this controller | ||
37 | const torrentsPhysicalPath = CONFIG.STORAGE.TORRENTS_DIR | ||
38 | staticRouter.use( | ||
39 | STATIC_PATHS.TORRENTS, | ||
40 | express.static(torrentsPhysicalPath, { maxAge: 0 }) // Don't cache because we could regenerate the torrent file | ||
41 | ) | ||
42 | |||
43 | // Videos path for webseed | 35 | // Videos path for webseed |
44 | staticRouter.use( | 36 | staticRouter.use( |
45 | STATIC_PATHS.WEBSEED, | 37 | STATIC_PATHS.WEBSEED, |