Skip to content

Commit e9d4f5b

Browse files
authored
Remove variable usage from proxy_pass directive to fix resolution issues
By using a static URL, the backend server can be accessed reliably, avoiding the common 404 errors or "no resolver defined" issues seen when variables are used.
1 parent eaf6335 commit e9d4f5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/templates/_location.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
set $proxy_server "{{ forward_host }}";
1212
set $proxy_port {{ forward_port }};
1313

14-
proxy_pass $proxy_forward_scheme://$proxy_server:$proxy_port{{ forward_path }};
14+
proxy_pass {{ forward_scheme }}:{{ forward_host }}:{{ forward_port }}{{ forward_path }};
1515

1616
{% include "_access.conf" %}
1717
{% include "_assets.conf" %}

0 commit comments

Comments
 (0)