Simplify Sigmah and Motech proxy rules
This commit is contained in:
parent
018e1d3e63
commit
fe438e79c7
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user