Proxy cookie path (#150)
* Add proxy_cookie_path directive to rewrite the cookie path * delete unnecessary spacing
This commit is contained in:
parent
a8dfb5b7df
commit
421882389d
@ -506,6 +506,9 @@ nginx_http_template:
|
|||||||
proxy_ignore_headers:
|
proxy_ignore_headers:
|
||||||
- Vary
|
- Vary
|
||||||
- Cache-Control
|
- Cache-Control
|
||||||
|
proxy_cookie_path:
|
||||||
|
path: /web/
|
||||||
|
replacement: /
|
||||||
proxy_buffering: false
|
proxy_buffering: false
|
||||||
proxy_http_version: 1.0
|
proxy_http_version: 1.0
|
||||||
websocket: false
|
websocket: false
|
||||||
|
@ -318,6 +318,9 @@ nginx_http_template:
|
|||||||
proxy_ignore_headers:
|
proxy_ignore_headers:
|
||||||
- Vary
|
- Vary
|
||||||
- Cache-Control
|
- Cache-Control
|
||||||
|
proxy_cookie_path:
|
||||||
|
path: /web/
|
||||||
|
replacement: /
|
||||||
proxy_buffering: false
|
proxy_buffering: false
|
||||||
proxy_http_version: 1.0
|
proxy_http_version: 1.0
|
||||||
websocket: false
|
websocket: false
|
||||||
|
@ -254,6 +254,9 @@ server {
|
|||||||
{% if item.value.reverse_proxy.locations[location].proxy_ignore_headers is defined %}
|
{% if item.value.reverse_proxy.locations[location].proxy_ignore_headers is defined %}
|
||||||
proxy_ignore_headers {{ item.value.reverse_proxy.locations[location].proxy_ignore_headers | join(" ") }};
|
proxy_ignore_headers {{ item.value.reverse_proxy.locations[location].proxy_ignore_headers | join(" ") }};
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if item.value.reverse_proxy.locations[location].proxy_cookie_path is defined %}
|
||||||
|
proxy_cookie_path {{ item.value.reverse_proxy.locations[location].proxy_cookie_path.path }} {{ item.value.reverse_proxy.locations[location].proxy_cookie_path.replacement }};
|
||||||
|
{% endif %}
|
||||||
{% if item.value.reverse_proxy.locations[location].proxy_buffering is defined %}
|
{% if item.value.reverse_proxy.locations[location].proxy_buffering is defined %}
|
||||||
proxy_buffering {{ item.value.reverse_proxy.locations[location].proxy_buffering | ternary("on", "off") }};
|
proxy_buffering {{ item.value.reverse_proxy.locations[location].proxy_buffering | ternary("on", "off") }};
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -119,6 +119,9 @@
|
|||||||
header_x_forwarded_proto:
|
header_x_forwarded_proto:
|
||||||
name: X-Forwarded-Proto
|
name: X-Forwarded-Proto
|
||||||
value: $scheme
|
value: $scheme
|
||||||
|
proxy_cookie_path:
|
||||||
|
path: /web/
|
||||||
|
replacement: /
|
||||||
upstreams:
|
upstreams:
|
||||||
frontend_upstream:
|
frontend_upstream:
|
||||||
name: frontend_servers
|
name: frontend_servers
|
||||||
|
Loading…
Reference in New Issue
Block a user