diff options
author | Chocobozzz <me@florianbigard.com> | 2018-12-04 17:08:55 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-12-04 17:08:55 +0100 |
commit | b9fffa297f49a84df8ffd0d7b842599bc88a8e3e (patch) | |
tree | 49a12ebebf4d533e8b273abbb9492350a233101d /server/controllers | |
parent | 6040f87d143a5fa01db79867ece8197c3ce7be47 (diff) | |
download | PeerTube-b9fffa297f49a84df8ffd0d7b842599bc88a8e3e.tar.gz PeerTube-b9fffa297f49a84df8ffd0d7b842599bc88a8e3e.tar.zst PeerTube-b9fffa297f49a84df8ffd0d7b842599bc88a8e3e.zip |
Create redundancy endpoint
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( |