mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
404 on unknown thumbnail
This commit is contained in:
parent
a8981e0b24
commit
a8bf1d826e
2 changed files with 10 additions and 9 deletions
|
@ -48,13 +48,13 @@ staticRouter.use(
|
|||
const thumbnailsPhysicalPath = CONFIG.STORAGE.THUMBNAILS_DIR
|
||||
staticRouter.use(
|
||||
STATIC_PATHS.THUMBNAILS,
|
||||
express.static(thumbnailsPhysicalPath, { maxAge: STATIC_MAX_AGE })
|
||||
express.static(thumbnailsPhysicalPath, { maxAge: STATIC_MAX_AGE, fallthrough: false }) // 404 if the file does not exist
|
||||
)
|
||||
|
||||
const avatarsPhysicalPath = CONFIG.STORAGE.AVATARS_DIR
|
||||
staticRouter.use(
|
||||
STATIC_PATHS.AVATARS,
|
||||
express.static(avatarsPhysicalPath, { maxAge: STATIC_MAX_AGE })
|
||||
express.static(avatarsPhysicalPath, { maxAge: STATIC_MAX_AGE, fallthrough: false }) // 404 if the file does not exist
|
||||
)
|
||||
|
||||
// We don't have video previews, fetch them from the origin instance
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue