mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
Changed header to x-forwarded-host
This commit is contained in:
+1
-1
@@ -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 }};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user