diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-11-01 19:17:25 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-11-01 19:17:25 +0100 |
commit | d16b5172ae95f2389084ba2a301088358605771f (patch) | |
tree | d0e193bf10b4291ca5486432a4953b1748bc17ba /server/initializers | |
parent | b1233aa856d9b7cd18179c96a0a4856d3ab3b319 (diff) | |
download | PeerTube-d16b5172ae95f2389084ba2a301088358605771f.tar.gz PeerTube-d16b5172ae95f2389084ba2a301088358605771f.tar.zst PeerTube-d16b5172ae95f2389084ba2a301088358605771f.zip |
Server: use constants to get port configuration
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js index 0efbbb916..d345776ff 100644 --- a/server/initializers/constants.js +++ b/server/initializers/constants.js | |||
@@ -31,6 +31,9 @@ const OAUTH_LIFETIME = { | |||
31 | // --------------------------------------------------------------------------- | 31 | // --------------------------------------------------------------------------- |
32 | 32 | ||
33 | const CONFIG = { | 33 | const CONFIG = { |
34 | LISTEN: { | ||
35 | PORT: config.get('listen.port') | ||
36 | }, | ||
34 | DATABASE: { | 37 | DATABASE: { |
35 | DBNAME: 'peertube' + config.get('database.suffix'), | 38 | DBNAME: 'peertube' + config.get('database.suffix'), |
36 | HOSTNAME: config.get('database.hostname'), | 39 | HOSTNAME: config.get('database.hostname'), |