fix bugs jenkinsjob

This commit is contained in:
2024-11-12 23:43:48 +03:00
parent 8fe1bebb4b
commit b6f55f1186
3 changed files with 24 additions and 26 deletions

View File

@ -17,10 +17,13 @@ server {
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_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
}
location /health {
return 200 'Proxy is up';
add_header Content-Type text/plain;
proxy_pass http://backend/health;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}