Suffix upstream names to prevent confusion with FQDNs

This commit is contained in:
Chris Heald
2021-04-29 02:21:19 +02:00
committed by Nicolas Duchon
parent e3cc439ff0
commit 85327a871e
+1 -1
View File
@@ -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 }} {