Преглед на файлове

refactor: move debug's hostname into vhost

Nicolas Duchon преди 7 месеца
родител
ревизия
7d909782f9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      nginx.tmpl

+ 1 - 1
nginx.tmpl

@@ -380,11 +380,11 @@ upstream {{ $vpath.upstream }} {
     {{- end }}
     
     {{- $debug_vhost := deepCopy .VHost }}
+    {{- $_ := set $debug_vhost "hostname" .Hostname }}
     {{- $_ := set $debug_vhost "paths" $debug_paths }}
 
     {{- $debug_response := dict
         "global" .GlobalConfig
-        "hostname" .Hostname
         "request" (dict
             "host" "$host"
             "https" "$https"