Changed header to x-forwarded-host

This commit is contained in:
2023-08-19 18:32:23 +02:00
parent d79e264ac8
commit b114d5e087
@@ -9,7 +9,7 @@ server {
{% for app in spring_apps %} {% for app in spring_apps %}
{% if app.expose %} {% if app.expose %}
location {{ app.path }} { 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_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:{{ app.port }}; proxy_pass http://localhost:{{ app.port }};
} }