From 078ca48cdfca934c09c09e8c16e0a9f93c99cca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 2 Jun 2024 14:26:54 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index c5cac2a..0e4a014 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -5,7 +5,7 @@ location __PATH__/ { proxy_redirect / __PATH__/; proxy_pass http://127.0.0.1:__PORT__/; - proxy_buffering off; # be careful, this line doesn't override any proxy_buffering on set in a conf.d/file.conf + proxy_buffering off; proxy_set_header Host $host; proxy_pass_header Server; @@ -16,9 +16,8 @@ location __PATH__/ { rewrite __PATH__/socket.io/(.*) /socket.io/$1 break; proxy_redirect / __PATH__/; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_pass http://127.0.0.1:__PORT__/; - proxy_buffering off; # be careful, this line doesn't override any proxy_buffering on set in a conf.d/file.conf + proxy_buffering off; proxy_set_header Host $host; proxy_pass_header Server; proxy_http_version 1.1; @@ -33,10 +32,9 @@ location __PATH__/ { location __PATH__/admin { rewrite __PATH__/admin/(.*) __PATH__/$1 break; proxy_redirect / __PATH__/; - proxy_set_header X-Proxy-Path __PATH__; + proxy_set_header X-Proxy-Path __PATH__; proxy_pass http://127.0.0.1:__PORT__/; - - proxy_buffering off; # be careful, this line doesn't override any proxy_buffering on set in a conf.d/file.conf + proxy_buffering off; proxy_set_header Host $host; proxy_pass_header Server; @@ -49,8 +47,7 @@ location __PATH__/ { proxy_redirect / __PATH__/; proxy_set_header X-Proxy-Path __PATH__; proxy_pass http://127.0.0.1:__PORT__/; - - proxy_buffering off; # be careful, this line doesn't override any proxy_buffering on set in a conf.d/file.conf + proxy_buffering off; proxy_set_header Host $host; proxy_pass_header Server; @@ -59,9 +56,8 @@ location __PATH__/ { location __PATH__/static { rewrite __PATH__/static/(.*) /static/$1 break; - proxy_pass http://127.0.0.1:__PORT__/; - proxy_buffering off; # be careful, this line doesn't override any proxy_buffering on set in a conf.d/file.conf + proxy_buffering off; proxy_set_header Host $host; proxy_pass_header Server;