1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-02-24 01:38:15 +00:00

refactor: move debug's hostname into vhost

This commit is contained in:
Nicolas Duchon 2024-11-03 11:28:39 +01:00
parent 72bb8a66d8
commit 7d909782f9

View File

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