diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-11-16 20:22:17 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-11-16 20:29:26 +0100 |
commit | 441b66f80923d1f574a74582f1fb9306b99fc12a (patch) | |
tree | ed8a853b9df3666772ec4c027a03c7e05651423c /server/initializers | |
parent | 9c89a45cb2a7bb46e68fb084723a2046b12c7617 (diff) | |
download | PeerTube-441b66f80923d1f574a74582f1fb9306b99fc12a.tar.gz PeerTube-441b66f80923d1f574a74582f1fb9306b99fc12a.tar.zst PeerTube-441b66f80923d1f574a74582f1fb9306b99fc12a.zip |
Server: forbid to make friends with a non https server
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js index 40e1c5381..3ddf87454 100644 --- a/server/initializers/constants.js +++ b/server/initializers/constants.js | |||
@@ -152,7 +152,7 @@ const REQUEST_ENDPOINTS = { | |||
152 | 152 | ||
153 | const REMOTE_SCHEME = { | 153 | const REMOTE_SCHEME = { |
154 | HTTP: 'https', | 154 | HTTP: 'https', |
155 | WS: 'WS' | 155 | WS: 'wss' |
156 | } | 156 | } |
157 | 157 | ||
158 | // Password encryption | 158 | // Password encryption |
@@ -220,6 +220,7 @@ module.exports = { | |||
220 | 220 | ||
221 | // --------------------------------------------------------------------------- | 221 | // --------------------------------------------------------------------------- |
222 | 222 | ||
223 | // This method exists in utils module but we want to let the constants module independent | ||
223 | function isTestInstance () { | 224 | function isTestInstance () { |
224 | return (process.env.NODE_ENV === 'test') | 225 | return (process.env.NODE_ENV === 'test') |
225 | } | 226 | } |