diff --git a/ansible/roles/spring_boot/templates/etc/nginx/sites-available/spring_domain_existing.conf.j2 b/ansible/roles/spring_boot/templates/etc/nginx/sites-available/spring_domain_existing.conf.j2 index 5343c11..1f3964c 100644 --- a/ansible/roles/spring_boot/templates/etc/nginx/sites-available/spring_domain_existing.conf.j2 +++ b/ansible/roles/spring_boot/templates/etc/nginx/sites-available/spring_domain_existing.conf.j2 @@ -9,7 +9,7 @@ server { {% for app in spring_apps %} {% if app.expose %} location {{ app.path }} { - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Host {{ spring_domain }}; proxy_set_header X-Forwarded-Proto $scheme; proxy_pass http://localhost:{{ app.port }}; }