Merge pull request #1163 from cheald/unique-upstreams
Suffix upstream names to prevent confusion with FQDNs
This commit is contained in:
commit
5c1a1c8a6d
1 changed files with 1 additions and 1 deletions
|
@ -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 }} {
|
||||
|
|
Loading…
Reference in a new issue