1
0
mirror of https://github.com/nginx-proxy/nginx-proxy synced 2024-09-28 15:01:27 +02:00

Merge pull request #1163 from cheald/unique-upstreams

Suffix upstream names to prevent confusion with FQDNs
This commit is contained in:
Nicolas Duchon 2021-04-29 02:30:45 +02:00 committed by GitHub
commit 5c1a1c8a6d
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

@ -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 }} {