2017-12-07 12:56:11 +01:00
|
|
|
location /motech {
|
2017-12-08 10:44:43 +01:00
|
|
|
alias /srv/motech/webapps/motech;
|
|
|
|
try_files $uri @motech;
|
|
|
|
}
|
|
|
|
|
|
|
|
location @motech {
|
2017-12-07 12:56:11 +01:00
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
2017-12-08 10:44:43 +01:00
|
|
|
proxy_set_header X-Forwarded-Host $host:$server_port;
|
2017-12-07 12:56:11 +01:00
|
|
|
proxy_set_header X-Forwarded-Proto https;
|
2017-12-08 10:44:43 +01:00
|
|
|
proxy_pass http://127.0.0.1:9081;
|
2017-12-07 12:56:11 +01:00
|
|
|
}
|