aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/initializers/checker.ts2
-rw-r--r--server/initializers/constants.ts3
2 files changed, 3 insertions, 2 deletions
diff --git a/server/initializers/checker.ts b/server/initializers/checker.ts
index 45f1d79c3..71f303963 100644
--- a/server/initializers/checker.ts
+++ b/server/initializers/checker.ts
@@ -18,7 +18,7 @@ function checkConfig () {
18 18
19// Check the config files 19// Check the config files
20function checkMissedConfig () { 20function checkMissedConfig () {
21 const required = [ 'listen.port', 21 const required = [ 'listen.port', 'listen.hostname',
22 'webserver.https', 'webserver.hostname', 'webserver.port', 22 'webserver.https', 'webserver.hostname', 'webserver.port',
23 'trust_proxy', 23 'trust_proxy',
24 'database.hostname', 'database.port', 'database.suffix', 'database.username', 'database.password', 24 'database.hostname', 'database.port', 'database.suffix', 'database.username', 'database.password',
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 2622b2c71..56d39529e 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -86,7 +86,8 @@ let SCHEDULER_INTERVAL = 60000 * 60
86const CONFIG = { 86const CONFIG = {
87 CUSTOM_FILE: getLocalConfigFilePath(), 87 CUSTOM_FILE: getLocalConfigFilePath(),
88 LISTEN: { 88 LISTEN: {
89 PORT: config.get<number>('listen.port') 89 PORT: config.get<number>('listen.port'),
90 HOSTNAME: config.get<string>('listen.hostname')
90 }, 91 },
91 DATABASE: { 92 DATABASE: {
92 DBNAME: 'peertube' + config.get<string>('database.suffix'), 93 DBNAME: 'peertube' + config.get<string>('database.suffix'),