Verified Commit 1ce5ecbc authored by EorlBruder's avatar EorlBruder
Browse files

fix(nginx): nginx won't fail if engine-api isn't reachable

parent 50017eff
Pipeline #1775 passed with stage
in 3 minutes and 12 seconds
......@@ -59,7 +59,8 @@ server {
proxy_pass http://tank:8040/;
}
location /trackservice/ {
proxy_pass http://engine-api:8008/api/v1/trackservice;
set $target http://${ENGINE_API_URL}/api/v1/trackservice;
proxy_pass $target;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
......@@ -71,7 +72,8 @@ server {
proxy_set_header X-Forwarded-Port $server_port;
}
location /trackservice/current/ {
proxy_pass http://${ENGINE_API_URL}/api/v1/trackservice/current;
set $target http://${ENGINE_API_URL}/api/v1/trackservice/current;
proxy_pass $target;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment