From 7d909782f9ae747d7580c9e810433d9f16e3e989 Mon Sep 17 00:00:00 2001 From: Nicolas Duchon Date: Sun, 3 Nov 2024 11:28:39 +0100 Subject: [PATCH] refactor: move debug's hostname into vhost --- nginx.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx.tmpl b/nginx.tmpl index 9c76c16..bdb23e0 100644 --- a/nginx.tmpl +++ b/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"