Verified Commit dabb7599 authored by EorlBruder's avatar EorlBruder
Browse files

feat(engine-api): reverse proxy public engine-api endpoints

parent ac919baf
Pipeline #1773 passed with stage
in 3 minutes and 14 seconds
......@@ -58,6 +58,30 @@ server {
proxy_pass http://tank:8040/;
}
location /trackservice/ {
proxy_pass http://engine-api:8008/api/v1/trackservice;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
}
location /trackservice/current/ {
proxy_pass http://engine-api:8008/api/v1/trackservice/current;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
}
include /etc/nginx/conf.d/locations/icecast.conf;
include /etc/nginx/conf.d/locations/clock.conf;
}
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