From da3b060dc3df7d5c0e0ea1d2fb9b29eb9a3343ec Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 22 Aug 2021 20:06:49 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 0356609..4b49ae0 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -6,12 +6,14 @@ location __PATH__/ { rewrite ^ https://$server_name$request_uri? permanent; } - proxy_pass http://127.0.0.1:__PORT__; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-Forwarded-Host $http_host; - proxy_redirect off; + proxy_pass http://127.0.0.1:__PORT__; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection keep-alive; + proxy_cache_bypass $http_upgrade; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Host $http_host; # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc;