Merge 1030f773f9
into 2f898566fc
This commit is contained in:
commit
ce014025ce
1 changed files with 4 additions and 1 deletions
|
@ -259,7 +259,10 @@ server {
|
||||||
}
|
}
|
||||||
{{ end }}
|
{{ 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 }}
|
{{ $host := trim $host }}
|
||||||
{{ $is_regexp := hasPrefix "~" $host }}
|
{{ $is_regexp := hasPrefix "~" $host }}
|
||||||
|
|
Loading…
Reference in a new issue