Simplify proxy pass

This commit is contained in:
root
2018-03-29 16:23:48 +02:00
parent d592a40806
commit bf70c591b4
10 changed files with 15 additions and 34 deletions

View File

@@ -40,19 +40,16 @@ server {
location / {
proxy_pass http://mogok.local:3002;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
include snippets/proxy_header.conf;
}
location /tc {
rewrite ^/tc/(.*)$ /$1 break;
proxy_pass http://triton-amp.local:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
include snippets/proxy_header.conf;
}
location /conf {
rewrite ^/conf/(.*)$ /$1 break;
proxy_pass http://mogok.local:8001;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
include snippets/proxy_header.conf;
}
}