all aliases in same server block (don't split >=3)

This commit is contained in:
Hannes Happle 2020-07-31 14:32:41 +02:00
parent 72e96ab0c6
commit 663a79bfa9
No known key found for this signature in database
GPG key ID: A5399EF17B215579

View file

@ -402,9 +402,8 @@ server {
{{ end }}
# VIRTUAL_HOST_ALIAS
{{ range $host_alias, $containers := groupByMulti $ "Env.VIRTUAL_HOST_ALIAS" "," }}
{{ $host_alias := trim $host_alias }}
{{ range $host_alias, $containers := groupBy $ "Env.VIRTUAL_HOST_ALIAS" }}
{{ $host_alias := replace $host_alias "," " " 99 }}
{{ $first_host := (first (groupByKeys $containers "Env.VIRTUAL_HOST")) }}
{{ $first_host := trim $first_host }}