diff --git a/conf/nginx.conf b/conf/nginx.conf index 0d56640..053085e 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,11 +1,10 @@ -location PATHTOCHANGE/ { - proxy_pass_header Server; - proxy_set_header Host $http_host; - proxy_redirect off; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Scheme $scheme; - proxy_pass http://127.0.0.1:8090/; +location PATHTOCHANGE/yacy { + proxy_pass http://127.0.0.1:8090PATHTOCHANGE/yacy; - # Include SSOWAT user panel. - include conf.d/yunohost_panel.conf.inc; + # Include SSOWAT user panel. + include conf.d/yunohost_panel.conf.inc; + more_clear_input_headers 'Accept-Encoding'; +} +location PATHTOCHANGE/ { + proxy_pass http://127.0.0.1:8090/; } diff --git a/conf/nginx.conf.old b/conf/nginx.conf.old new file mode 100644 index 0000000..0d56640 --- /dev/null +++ b/conf/nginx.conf.old @@ -0,0 +1,11 @@ +location PATHTOCHANGE/ { + proxy_pass_header Server; + proxy_set_header Host $http_host; + proxy_redirect off; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Scheme $scheme; + proxy_pass http://127.0.0.1:8090/; + + # Include SSOWAT user panel. + include conf.d/yunohost_panel.conf.inc; +}