Simplify Sigmah and Motech proxy rules

This commit is contained in:
Disassembler 2017-12-08 10:44:43 +01:00
parent 018e1d3e63
commit fe438e79c7
2 changed files with 18 additions and 18 deletions

View File

@ -1,11 +1,11 @@
location /motech {
proxy_set_header X-Forwarded-For $remote_addr;
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:9081/motech;
alias /srv/motech/webapps/motech;
try_files $uri @motech;
}
location @motech {
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_pass http://127.0.0.1:9081;
}

View File

@ -1,11 +1,11 @@
location /sigmah {
proxy_set_header X-Forwarded-For $remote_addr;
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:9080/sigmah;
alias /srv/sigmah;
try_files $uri @sigmah;
}
location @sigmah {
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_pass http://127.0.0.1:9080;
}