Skip to content

Commit 87731a8

Browse files
author
Julian Reinhardt
committed
Revert "Utilise variable for custom locations proxy_pass"
This reverts commit 6c1ae77.
1 parent 925ad90 commit 87731a8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

backend/templates/_location.conf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
location {{ path }} {
2-
set $upstream {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }};
32
proxy_set_header Host $host;
43
proxy_set_header X-Forwarded-Scheme $scheme;
54
proxy_set_header X-Forwarded-Proto $scheme;
65
proxy_set_header X-Forwarded-For $remote_addr;
76
proxy_set_header X-Real-IP $remote_addr;
8-
proxy_pass $upstream;
7+
proxy_pass {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }};
98

109
{% if access_list_id > 0 %}
1110
{% if access_list.items.length > 0 %}

0 commit comments

Comments
 (0)