X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server.js;h=ef26ea773d391483a3ad514381a22e8b103ba89f;hb=c8d90fdb600e382c58353491e9e63c8f769fed75;hp=204cc146f3a1222ea7d2089fba13a64eb3005842;hpb=e3647ae226d19ed1401d4c617d35a68de1c4657a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server.js b/server.js index 204cc146f..ef26ea773 100644 --- a/server.js +++ b/server.js @@ -75,6 +75,10 @@ app.use('/app/*', function (req, res, next) { res.sendStatus(404) }) +// Thumbnails path for express +const thumbnails_physical_path = path.join(__dirname, config.get('storage.thumbnails')) +app.use(constants.THUMBNAILS_STATIC_PATH, express.static(thumbnails_physical_path, { maxAge: 0 })) + // Client application app.use('/*', function (req, res, next) { res.sendFile(path.join(__dirname, 'client/index.html'))