From 85737d6292865ba1488af1d4256a41ee924ff05d Mon Sep 17 00:00:00 2001 From: frju365 Date: Fri, 11 May 2018 12:16:08 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 41a3833..77e8847 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,9 +1,15 @@ location / { + proxy_set_header Host $host; + 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_pass http://localhost:__PORT__/; - proxy_set_header Host $host; - proxy_buffering off; - fastcgi_param REMOTE_USER $remote_user; - client_max_body_size 50M; + proxy_redirect off; # Also note this + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection 'upgrade'; + proxy_set_header Host $host; + proxy_cache_bypass $http_upgrade; # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc;