diff options
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/static.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/controllers/static.ts b/server/controllers/static.ts index f16a7d72b..55e7392a1 100644 --- a/server/controllers/static.ts +++ b/server/controllers/static.ts | |||
@@ -37,12 +37,12 @@ staticRouter.use( | |||
37 | staticRouter.use( | 37 | staticRouter.use( |
38 | STATIC_PATHS.WEBSEED, | 38 | STATIC_PATHS.WEBSEED, |
39 | cors(), | 39 | cors(), |
40 | express.static(CONFIG.STORAGE.VIDEOS_DIR) | 40 | express.static(CONFIG.STORAGE.VIDEOS_DIR, { fallthrough: false }) // 404 because we don't have this video |
41 | ) | 41 | ) |
42 | staticRouter.use( | 42 | staticRouter.use( |
43 | STATIC_PATHS.WEBSEED, | 43 | STATIC_PATHS.REDUNDANCY, |
44 | cors(), | 44 | cors(), |
45 | express.static(CONFIG.STORAGE.REDUNDANCY_DIR, { fallthrough: false }) // 404, because we don't have this video | 45 | express.static(CONFIG.STORAGE.REDUNDANCY_DIR, { fallthrough: false }) // 404 because we don't have this video |
46 | ) | 46 | ) |
47 | 47 | ||
48 | staticRouter.use( | 48 | staticRouter.use( |