Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Framasoft
PeerTube
PeerTube
Commits
37cd44d0
Verified
Commit
37cd44d0
authored
Oct 14, 2021
by
Chocobozzz
Browse files
Remove deprecated torrent static route
parent
cf0c8ee5
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/controllers/static.ts
View file @
37cd44d0
...
...
@@ -32,14 +32,6 @@ staticRouter.use(cors())
Cors is very important to let other servers access torrent and video files
*/
// FIXME: deprecated in 3.2, use lazy-statics instead
// Due to historical reasons, we can't really remove this controller
const
torrentsPhysicalPath
=
CONFIG
.
STORAGE
.
TORRENTS_DIR
staticRouter
.
use
(
STATIC_PATHS
.
TORRENTS
,
express
.
static
(
torrentsPhysicalPath
,
{
maxAge
:
0
})
// Don't cache because we could regenerate the torrent file
)
// Videos path for webseed
staticRouter
.
use
(
STATIC_PATHS
.
WEBSEED
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment