From 85327a871eaf8762c8560fce0beb6e6b27649b63 Mon Sep 17 00:00:00 2001 From: Chris Heald Date: Mon, 20 Aug 2018 18:35:31 -0700 Subject: [PATCH] Suffix upstream names to prevent confusion with FQDNs --- nginx.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx.tmpl b/nginx.tmpl index f18aa21..1e03182 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -172,7 +172,7 @@ server { {{ $host := trim $host }} {{ $is_regexp := hasPrefix "~" $host }} -{{ $upstream_name := when $is_regexp (sha1 $host) $host }} +{{ $upstream_name := (print (when $is_regexp (sha1 $host) $host) "-upstream") }} # {{ $host }} upstream {{ $upstream_name }} {