From 418f1a3cd0bc89ae864933e859078938d98c1fc7 Mon Sep 17 00:00:00 2001 From: Nicolas Duchon Date: Tue, 27 Feb 2024 13:20:39 +0100 Subject: [PATCH] fix: don't re-assign variable Co-authored-by: pini-gh --- nginx.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx.tmpl b/nginx.tmpl index f8ac809..6c570ed 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -452,7 +452,7 @@ proxy_set_header Proxy ""; {{- /* Precompute some information about each vhost. */}} {{- range $hostname, $containers := groupByMulti $globals.containers "Env.VIRTUAL_HOST" "," }} - {{- $hostname := trim $hostname }} + {{- $hostname = trim $hostname }} {{- if not $hostname }} {{- /* Ignore containers with VIRTUAL_HOST set to the empty string. */}} {{- continue }}