diff --git a/custom/cryptpad/conf.d/cryptpad.conf b/custom/cryptpad/conf.d/cryptpad.conf index bf8ed28..8aa3515 100644 --- a/custom/cryptpad/conf.d/cryptpad.conf +++ b/custom/cryptpad/conf.d/cryptpad.conf @@ -11,6 +11,9 @@ server { set_real_ip_from 10.0.0.0/8; real_ip_header X-Forwarded-For; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + # CryptPad serves static assets over these two domains. # `main_domain` is what users will enter in their address bar. # Privileged computation such as key management is handled in this scope diff --git a/custom/cryptpad/config.js b/custom/cryptpad/config.js index 46071fc..4d86ab3 100644 --- a/custom/cryptpad/config.js +++ b/custom/cryptpad/config.js @@ -283,6 +283,4 @@ module.exports = { * */ installMethod: 'unspecified', -}; - -var _domain = 'http://127.0.0.1:3000/'; \ No newline at end of file +}; \ No newline at end of file