From 94e55589229eca8a04bc20df9219fee6d605c835 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 19 Jun 2020 20:48:47 +0100 Subject: [PATCH] Hide connection upgrades --- deploy/onion | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/onion b/deploy/onion index b78049090..fa386ea61 100755 --- a/deploy/onion +++ b/deploy/onion @@ -254,8 +254,8 @@ echo "Creating nginx virtual host for ${ONION_DOMAIN}" echo ' location / {'; echo ' proxy_http_version 1.1;'; echo ' client_max_body_size 31M;'; - echo " proxy_set_header Upgrade \$http_upgrade;"; - echo ' proxy_set_header Connection "upgrade";'; + echo " proxy_hide_header Upgrade;"; + echo ' proxy_hide_header Connection;'; echo " proxy_set_header Host \$http_host;"; echo " proxy_set_header X-Real-IP \$remote_addr;"; echo " proxy_set_header X-Forward-For \$proxy_add_x_forwarded_for;";