aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/constants.js')
-rw-r--r--server/initializers/constants.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js
index 8a8d5c1ce..5ccd42773 100644
--- a/server/initializers/constants.js
+++ b/server/initializers/constants.js
@@ -32,7 +32,7 @@ const OAUTH_LIFETIME = {
32const CONFIG = { 32const CONFIG = {
33 DATABASE: { 33 DATABASE: {
34 DBNAME: 'peertube' + config.get('database.suffix'), 34 DBNAME: 'peertube' + config.get('database.suffix'),
35 HOST: config.get('database.host'), 35 HOSTNAME: config.get('database.hostname'),
36 PORT: config.get('database.port') 36 PORT: config.get('database.port')
37 }, 37 },
38 STORAGE: { 38 STORAGE: {
@@ -45,11 +45,11 @@ const CONFIG = {
45 WEBSERVER: { 45 WEBSERVER: {
46 SCHEME: config.get('webserver.https') === true ? 'https' : 'http', 46 SCHEME: config.get('webserver.https') === true ? 'https' : 'http',
47 WS: config.get('webserver.https') === true ? 'wss' : 'ws', 47 WS: config.get('webserver.https') === true ? 'wss' : 'ws',
48 HOST: config.get('webserver.host'), 48 HOSTNAME: config.get('webserver.hostname'),
49 PORT: config.get('webserver.port') 49 PORT: config.get('webserver.port')
50 } 50 }
51} 51}
52CONFIG.WEBSERVER.URL = CONFIG.WEBSERVER.SCHEME + '://' + CONFIG.WEBSERVER.HOST + ':' + CONFIG.WEBSERVER.PORT 52CONFIG.WEBSERVER.URL = CONFIG.WEBSERVER.SCHEME + '://' + CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WEBSERVER.PORT
53 53
54// --------------------------------------------------------------------------- 54// ---------------------------------------------------------------------------
55 55