add support to add headers to proxy
This commit is contained in:
parent
f68c0c8b9b
commit
b5ed095d35
1 changed files with 11 additions and 6 deletions
|
|
@ -39,6 +39,11 @@ server {
|
|||
proxy_set_header X-Forwarded-Ssl $https;
|
||||
proxy_set_header X-Url-Scheme $scheme;
|
||||
|
||||
# custom proxy headers
|
||||
{% for header in vhost.add_proxy_headers|d({}) if header %}
|
||||
proxy_set_header {{ header }} "{{ vhost.add_proxy_headers[header] }}";
|
||||
{% endfor %}
|
||||
|
||||
# Websockets
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue