1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-08-24 00:11:55 +00:00

Support multiple VIRTUAL_HOSTs per container.

Fixes #3
This commit is contained in:
Jason Wilder
2014-06-08 10:14:51 -06:00
parent ebce30e761
commit b9d7bde5cd
2 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ server {
return 503;
}
{{ range $host, $containers := groupBy $ "Env.VIRTUAL_HOST" }}
{{ range $host, $containers := groupByMulti $ "Env.VIRTUAL_HOST" "," }}
upstream {{ $host }} {
{{ range $index, $value := $containers }}