소스 검색

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.
mitossoft-rd 1 년 전
부모
커밋
e9d4f5b827
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      backend/templates/_location.conf

+ 1 - 1
backend/templates/_location.conf

@@ -11,7 +11,7 @@
     set $proxy_server         "{{ forward_host }}";
     set $proxy_port           {{ forward_port }};
 
-    proxy_pass       $proxy_forward_scheme://$proxy_server:$proxy_port{{ forward_path }};
+    proxy_pass       {{ forward_scheme }}:{{ forward_host }}:{{ forward_port }}{{ forward_path }};
 
     {% include "_access.conf" %}
     {% include "_assets.conf" %}