From 5b2633d11fcf83e3b275524baf0c0401951e80a9 Mon Sep 17 00:00:00 2001 From: liberodark Date: Fri, 29 May 2020 14:51:26 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 0268860..1b2100b 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,13 +1,12 @@ location __PATH__/ { proxy_pass http://127.0.0.1:__PORT__; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-Forwarded-Port $server_port; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection $http_connection; - rewrite ^__PATH__/(.*)$ /$1 break; + proxy_redirect off; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Port $server_port; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Host $server_name; # Upload Size. client_max_body_size 128g;