From c1db229a6874b0abd24a7d0c79937883f8954a69 Mon Sep 17 00:00:00 2001 From: "m.lettere" Date: Wed, 26 May 2021 18:42:29 +0200 Subject: [PATCH] removed authorization constraint from health check and fixed host header for backend calls --- roles/pep/templates/nginx.default.conf.j2 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; }