Simplify GNU Health and CrisisCleanup proxy rules
This commit is contained in:
parent
fe438e79c7
commit
00c409bf41
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user