aboutsummaryrefslogtreecommitdiffhomepage
path: root/models/videos.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-02-07 10:39:37 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-02-07 10:39:37 +0100
commitb3077e417056f18225957f65419b87de72117fe3 (patch)
treebe00437c83175ca09b184df6fb21ffe149e11ff8 /models/videos.js
parentc5a8be2b6282d2042e469e1b7c1e7ce8795c026f (diff)
downloadPeerTube-b3077e417056f18225957f65419b87de72117fe3.tar.gz
PeerTube-b3077e417056f18225957f65419b87de72117fe3.tar.zst
PeerTube-b3077e417056f18225957f65419b87de72117fe3.zip
Standard v6
Diffstat (limited to 'models/videos.js')
-rw-r--r--models/videos.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/models/videos.js b/models/videos.js
index 6ea628373..ea1823e27 100644
--- a/models/videos.js
+++ b/models/videos.js
@@ -6,13 +6,14 @@
6 var dz = require('dezalgo') 6 var dz = require('dezalgo')
7 var fs = require('fs') 7 var fs = require('fs')
8 var mongoose = require('mongoose') 8 var mongoose = require('mongoose')
9 var path = require('path')
9 10
10 var logger = require('../helpers/logger') 11 var logger = require('../helpers/logger')
11 12
12 var http = config.get('webserver.https') === true ? 'https' : 'http' 13 var http = config.get('webserver.https') === true ? 'https' : 'http'
13 var host = config.get('webserver.host') 14 var host = config.get('webserver.host')
14 var port = config.get('webserver.port') 15 var port = config.get('webserver.port')
15 var uploadDir = __dirname + '/../' + config.get('storage.uploads') 16 var uploadDir = path.join(__dirname, '..', config.get('storage.uploads'))
16 17
17 // --------------------------------------------------------------------------- 18 // ---------------------------------------------------------------------------
18 19