Simplify Sigmah and Motech proxy rules
This commit is contained in:
parent
018e1d3e63
commit
fe438e79c7
@ -1,11 +1,11 @@
|
|||||||
location /motech {
|
location /motech {
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
alias /srv/motech/webapps/motech;
|
||||||
proxy_set_header X-Forwarded-Proto https;
|
try_files $uri @motech;
|
||||||
proxy_set_header Host $http_host;
|
}
|
||||||
proxy_set_header Proxy "";
|
|
||||||
proxy_redirect off;
|
location @motech {
|
||||||
proxy_buffering off;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
proxy_read_timeout 90;
|
proxy_set_header X-Forwarded-Host $host:$server_port;
|
||||||
proxy_connect_timeout 90;
|
proxy_set_header X-Forwarded-Proto https;
|
||||||
proxy_pass http://127.0.0.1:9081/motech;
|
proxy_pass http://127.0.0.1:9081;
|
||||||
}
|
}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
location /sigmah {
|
location /sigmah {
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
alias /srv/sigmah;
|
||||||
proxy_set_header X-Forwarded-Proto https;
|
try_files $uri @sigmah;
|
||||||
proxy_set_header Host $http_host;
|
}
|
||||||
proxy_set_header Proxy "";
|
|
||||||
proxy_redirect off;
|
location @sigmah {
|
||||||
proxy_buffering off;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
proxy_read_timeout 90;
|
proxy_set_header X-Forwarded-Host $host:$server_port;
|
||||||
proxy_connect_timeout 90;
|
proxy_set_header X-Forwarded-Proto https;
|
||||||
proxy_pass http://127.0.0.1:9080/sigmah;
|
proxy_pass http://127.0.0.1:9080;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user