From 4695d907ba6454d0bdba6798d545dd64e5940404 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 29 Dec 2020 23:42:57 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 5d086cb..3c8eff4 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -6,17 +6,17 @@ location __PATH__/ { rewrite ^ https://$server_name$request_uri? permanent; } - 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-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; + proxy_pass http://127.0.0.1:__PORT__/; + proxy_set_header Host $host; + proxy_buffering off; + 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; - rewrite ^__PATH__/gogs/(.*) /$1 break; - rewrite ^__PATH__/gogs$ /$1 break; - - proxy_read_timeout 90; + #rewrite ^__PATH__/gogs/(.*) /$1 break; + #rewrite ^__PATH__/gogs$ /$1 break; + #proxy_read_timeout 90; client_max_body_size 200M; # Include SSOWAT user panel.