From 4adf6733f183affa1e58f1f12db650d280f65e83 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 8 Feb 2019 18:13:24 +0100 Subject: [PATCH] nginx configuration to comply with writefreely recommandation --- conf/nginx.conf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index b14062f..434c236 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -19,9 +19,8 @@ location __PATH__/ { proxy_pass http://localhost:__PORT__; proxy_set_header Host $http_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; - client_max_body_size 10m; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_redirect off; # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc;