Support multiple VIRTUAL_HOSTs per container.

Fixes #3
This commit is contained in:
Jason Wilder committed 2014-06-08 10:14:51 -06:00
1 parent ebce30e761
commit b9d7bde5cd
2 files changed
+3 -3

No files matched your search

+1 -1
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 }}