mirror of
				https://github.com/thib8956/nginx-proxy
				synced 2025-11-03 18:49:20 +00:00 
			
		
		
		
	fix: always use sha1 of hostname as upstream name
This commit is contained in:
		@@ -153,8 +153,7 @@ server {
 | 
			
		||||
{{ range $host, $containers := groupByMulti $ "Env.VIRTUAL_HOST" "," }}
 | 
			
		||||
 | 
			
		||||
{{ $host := trim $host }}
 | 
			
		||||
{{ $is_regexp := hasPrefix "~" $host }}
 | 
			
		||||
{{ $upstream_name := (print (when $is_regexp (sha1 $host) $host) "-upstream") }}
 | 
			
		||||
{{ $upstream_name := sha1 $host }}
 | 
			
		||||
 | 
			
		||||
# {{ $host }}
 | 
			
		||||
upstream {{ $upstream_name }} {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user