]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server.js
Fix ffmpeg extraction
[github/Chocobozzz/PeerTube.git] / server.js
index 204cc146f3a1222ea7d2089fba13a64eb3005842..ef26ea773d391483a3ad514381a22e8b103ba89f 100644 (file)
--- 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'))