diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-10-21 11:33:31 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-10-21 11:33:31 +0200 |
commit | b3d92510157f9066ea7fa82c303bea7a10eb55b6 (patch) | |
tree | b5879aae311680ad0014a2a90f82b5ca180a836a /server.js | |
parent | 80a6c9e76fda57f01e37fe4620771ae70738a211 (diff) | |
download | PeerTube-b3d92510157f9066ea7fa82c303bea7a10eb55b6.tar.gz PeerTube-b3d92510157f9066ea7fa82c303bea7a10eb55b6.tar.zst PeerTube-b3d92510157f9066ea7fa82c303bea7a10eb55b6.zip |
Server: Uploads -> Videos
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -77,9 +77,9 @@ app.use('/client/*', function (req, res, next) { | |||
77 | const torrentsPhysicalPath = path.join(__dirname, config.get('storage.torrents')) | 77 | const torrentsPhysicalPath = path.join(__dirname, config.get('storage.torrents')) |
78 | app.use(constants.STATIC_PATHS.TORRENTS, cors(), express.static(torrentsPhysicalPath, { maxAge: 0 })) | 78 | app.use(constants.STATIC_PATHS.TORRENTS, cors(), express.static(torrentsPhysicalPath, { maxAge: 0 })) |
79 | 79 | ||
80 | // Uploads path for webseeding | 80 | // Videos path for webseeding |
81 | const uploadsPhysicalPath = path.join(__dirname, config.get('storage.uploads')) | 81 | const videosPhysicalPath = path.join(__dirname, config.get('storage.videos')) |
82 | app.use(constants.STATIC_PATHS.WEBSEED, cors(), express.static(uploadsPhysicalPath, { maxAge: 0 })) | 82 | app.use(constants.STATIC_PATHS.WEBSEED, cors(), express.static(videosPhysicalPath, { maxAge: 0 })) |
83 | 83 | ||
84 | // Thumbnails path for express | 84 | // Thumbnails path for express |
85 | const thumbnailsPhysicalPath = path.join(__dirname, config.get('storage.thumbnails')) | 85 | const thumbnailsPhysicalPath = path.join(__dirname, config.get('storage.thumbnails')) |