Skip to content
Snippets Groups Projects
Verified Commit 3a52a115 authored by nd's avatar nd
Browse files

add support to overwrite host header if only a location has a backend

parent 5b201a05
No related branches found
No related tags found
No related merge requests found
...@@ -126,6 +126,9 @@ path :'' ...@@ -126,6 +126,9 @@ path :''
# can be 'all' or 'any' # can be 'all' or 'any'
satisfy: 'all satisfy: 'all
# example: "https://upstream". If set to None no reverse proxy will be set up.
backend: None
``` ```
**mapsconfig**: **mapsconfig**:
......
...@@ -50,7 +50,7 @@ server { ...@@ -50,7 +50,7 @@ server {
proxy_buffering off; proxy_buffering off;
# add proxy headers # add proxy headers
proxy_set_header Host {{ vhost.host }}; proxy_set_header Host {{ location.host|d(vhost.host) }};
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment