1
0
Fork 0
mirror of https://github.com/nginx-proxy/nginx-proxy synced 2024-05-28 10:26:13 +02:00

Suffix upstream names to prevent confusion with FQDNs

This commit is contained in:
Chris Heald 2018-08-20 18:35:31 -07:00 committed by Nicolas Duchon
parent e3cc439ff0
commit 85327a871e
No known key found for this signature in database
GPG Key ID: EA3151C66A4D79E7

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