From ff5ac5421c9c90fde93bf69433e8063fca7ac3bb Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 6 Nov 2021 23:52:38 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 5c003bb..f443e57 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -9,16 +9,10 @@ location __PATH__/ { 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; + fastcgi_param REMOTE_USER $remote_user; + client_max_body_size 200M; proxy_set_header X-Forwarded-Proto $scheme; - #wrewrite ^__PATH__/gogs/(.*) /$1 break; - #rewrite ^__PATH__/gogs$ /$1 break; - - #proxy_read_timeout 90; - client_max_body_size 200M; - # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; }