diff --git a/roles/pep/templates/nginx.default.conf.j2 b/roles/pep/templates/nginx.default.conf.j2 index b5b7a22..659352d 100644 --- a/roles/pep/templates/nginx.default.conf.j2 +++ b/roles/pep/templates/nginx.default.conf.j2 @@ -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; }