Skip to content

Commit 0deec99

Browse files
committed
Update nginx.tmpl example to use groupByMulti
Supports multiple VIRTUAL_HOST values separated by commas.
1 parent f53298d commit 0deec99

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

docker-gen-linux-amd64-0.3.0.tar.gz

2.24 MB
Binary file not shown.

docker-gen-linux-i386-0.3.0.tar.gz

2.18 MB
Binary file not shown.

templates/nginx.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{ range $host, $containers := groupBy $ "Env.VIRTUAL_HOST" }}
1+
{{ range $host, $containers := groupByMulti $ "Env.VIRTUAL_HOST" "," }}
22
upstream {{ $host }} {
33

44
{{ range $index, $value := $containers }}

0 commit comments

Comments
 (0)