From 73bb96cf2c79fc4d88c244bf5bbc9a85b59289a1 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 8 Apr 2021 20:56:50 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index e271a09..e35471d 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -5,30 +5,15 @@ location __PATH__/ { rewrite ^ https://$server_name$request_uri? permanent; } + client_max_body_size 100M; + proxy_pass http://127.0.0.1:__PORT__; proxy_http_version 1.1; - client_max_body_size 100M; - proxy_set_header Accept-Encoding ""; - - # allow websockets proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; # preserve client IP - proxy_set_header X-Forwarded-For $remote_addr; - - proxy_set_header Host $host; - #proxy_buffering off; - - # this setting allows the browser to cache the application in - # a way compatible with Meteor. - # on every applicaiton update the name of CSS and JS file is different, - # so they can be cache infinitely (here: 30 days) - # the root path MUST NOT be cached - if ($uri != '__PATH__') - { - expires 30d; - } + proxy_set_header X-Forwarded-For $remote_addr; # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc;