staticRouter.use(
STATIC_PATHS.WEBSEED,
cors(),
- express.static(CONFIG.STORAGE.VIDEOS_DIR)
+ express.static(CONFIG.STORAGE.VIDEOS_DIR, { fallthrough: false }) // 404 because we don't have this video
)
staticRouter.use(
- STATIC_PATHS.WEBSEED,
+ STATIC_PATHS.REDUNDANCY,
cors(),
- express.static(CONFIG.STORAGE.REDUNDANCY_DIR, { fallthrough: false }) // 404, because we don't have this video
+ express.static(CONFIG.STORAGE.REDUNDANCY_DIR, { fallthrough: false }) // 404 because we don't have this video
)
staticRouter.use(
}
)
+staticRouter.use('/.well-known/change-password',
+ (_, res: express.Response) => {
+ res.redirect('/my-account/settings')
+ }
+)
+
// ---------------------------------------------------------------------------
export {