]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/initializers/constants.js
Server: forbid to make friends with a non https server
[github/Chocobozzz/PeerTube.git] / server / initializers / constants.js
index 40e1c5381c9968e3215a630fdd5dd22ceb1f5c21..3ddf87454e0e234ffaf3215cfd6c2fa0f088c9c1 100644 (file)
@@ -152,7 +152,7 @@ const REQUEST_ENDPOINTS = {
 
 const REMOTE_SCHEME = {
   HTTP: 'https',
-  WS: 'WS'
+  WS: 'wss'
 }
 
 // Password encryption
@@ -220,6 +220,7 @@ module.exports = {
 
 // ---------------------------------------------------------------------------
 
+// This method exists in utils module but we want to let the constants module independent
 function isTestInstance () {
   return (process.env.NODE_ENV === 'test')
 }