diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-10-17 21:10:29 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-10-17 21:10:29 +0200 |
commit | 25cad919924faebda48f8741d3e6e0c3e23c6182 (patch) | |
tree | 17bd64a7e559452b5654b8ed99b3cce38ecc196e /server/initializers | |
parent | 7a2c9a8e55194342aa050147cf8b0564d4854966 (diff) | |
download | PeerTube-25cad919924faebda48f8741d3e6e0c3e23c6182.tar.gz PeerTube-25cad919924faebda48f8741d3e6e0c3e23c6182.tar.zst PeerTube-25cad919924faebda48f8741d3e6e0c3e23c6182.zip |
Server: handle tls websockets
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js index 09c4f755e..fb1cbc5f3 100644 --- a/server/initializers/constants.js +++ b/server/initializers/constants.js | |||
@@ -44,6 +44,7 @@ const CONFIG = { | |||
44 | }, | 44 | }, |
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 | HOST: config.get('webserver.host'), | 48 | HOST: config.get('webserver.host'), |
48 | PORT: config.get('webserver.port') | 49 | PORT: config.get('webserver.port') |
49 | } | 50 | } |