From e767bc11b8f1b9946b032e3b7ccb85bc1bba9cd5 Mon Sep 17 00:00:00 2001 From: faulty Date: Wed, 1 Feb 2023 12:16:10 +0100 Subject: [PATCH] mod: try nginx upgrade cryptpad#382 --- custom/cryptpad/conf.d/cryptpad.conf | 3 +++ custom/cryptpad/config.js | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) 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