We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87731a8 commit bbde7a1Copy full SHA for bbde7a1
backend/templates/_location.conf
@@ -1,10 +1,11 @@
1
location {{ path }} {
2
+ set $upstream {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }}$request_uri;
3
proxy_set_header Host $host;
4
proxy_set_header X-Forwarded-Scheme $scheme;
5
proxy_set_header X-Forwarded-Proto $scheme;
6
proxy_set_header X-Forwarded-For $remote_addr;
7
proxy_set_header X-Real-IP $remote_addr;
- proxy_pass {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }};
8
+ proxy_pass $upstream;
9
10
{% if access_list_id > 0 %}
11
{% if access_list.items.length > 0 %}
0 commit comments