Kaynağa Gözat

Revert "Utilise variable for custom locations proxy_pass"

This reverts commit 6c1ae77a2a40283c5444c2f7e0a7c8227aeecbd2.
Julian Reinhardt 4 yıl önce
ebeveyn
işleme
87731a8b5c
1 değiştirilmiş dosya ile 1 ekleme ve 2 silme
  1. 1 2
      backend/templates/_location.conf

+ 1 - 2
backend/templates/_location.conf

@@ -1,11 +1,10 @@
   location {{ path }} {
-    set              $upstream {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }};
     proxy_set_header Host $host;
     proxy_set_header X-Forwarded-Scheme $scheme;
     proxy_set_header X-Forwarded-Proto  $scheme;
     proxy_set_header X-Forwarded-For    $remote_addr;
     proxy_set_header X-Real-IP		$remote_addr;
-    proxy_pass       $upstream;
+    proxy_pass       {{ forward_scheme }}://{{ forward_host }}:{{ forward_port }}{{ forward_path }};
 
     {% if access_list_id > 0 %}
     {% if access_list.items.length > 0 %}