This commit is contained in:
jpillon 2022-12-27 10:33:43 +01:00 committed by GitHub
commit ce014025ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -259,7 +259,10 @@ server {
}
{{ end }}
{{ range $host, $containers := groupByMulti $ "Env.VIRTUAL_HOST" "," }}
{{/* Get the VIRTUAL_HOST_VARNAME for filtering */}}
{{ $virtual_host_varname := (or ($.Env.VIRTUAL_HOST_VARNAME) "VIRTUAL_HOST") }}
{{ range $host, $containers := groupByMulti $ (print "Env." $virtual_host_varname) "," }}
{{ $host := trim $host }}
{{ $is_regexp := hasPrefix "~" $host }}