removed authorization constraint from health check and fixed host header for backend calls

This commit is contained in:
Marco Lettere 2021-05-26 18:42:29 +02:00
parent 9cc76a61d5
commit c1db229a68
1 changed files with 7 additions and 1 deletions

View File

@ -24,10 +24,16 @@ server {
{% if conductor_server_name != conductor_ui_server_name %}
# When there is the possibility to separate vhosts for ui and apis as in local-site deployment forward also / to swagger docs
location / {
proxy_pass http://_conductor-server;
proxy_set_header Host $host;
proxy_pass http://_conductor-server;
}
{% endif %}
location /health {
proxy_set_header Host $host;
proxy_pass http://_conductor-server;
}
location /api/ {
js_content pep.enforce;
}