Simplify GNU Health and CrisisCleanup proxy rules

This commit is contained in:
Disassembler 2017-12-08 11:27:01 +01:00
parent fe438e79c7
commit 00c409bf41
2 changed files with 6 additions and 16 deletions

View File

@ -6,17 +6,12 @@ server {
error_log /var/log/nginx/crisiscleanup.error.log; error_log /var/log/nginx/crisiscleanup.error.log;
root /srv/crisiscleanup/public; root /srv/crisiscleanup/public;
try_files $uri/index.html $uri @app; try_files $uri/index.html $uri @crisiscleanup;
location @app { location @crisiscleanup {
proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Forwarded-Proto https;
proxy_set_header Host $http_host;
proxy_set_header Proxy "";
proxy_redirect off;
proxy_buffering off;
proxy_read_timeout 90;
proxy_connect_timeout 90;
proxy_pass http://127.0.0.1:3000; proxy_pass http://127.0.0.1:3000;
} }

View File

@ -6,17 +6,12 @@ server {
error_log /var/log/nginx/gnuhealth.error.log; error_log /var/log/nginx/gnuhealth.error.log;
root /srv/gnuhealth/sao; root /srv/gnuhealth/sao;
try_files $uri @app; try_files $uri @gnuhealth;
location @app { location @gnuhealth {
proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Forwarded-Proto https;
proxy_set_header Host $http_host;
proxy_set_header Proxy "";
proxy_redirect off;
proxy_buffering off;
proxy_read_timeout 90;
proxy_connect_timeout 90;
proxy_pass http://127.0.0.1:8097; proxy_pass http://127.0.0.1:8097;
} }
} }