Skip to content

Commit

Permalink
change template so that it does not provide an empty list of whitelis…
Browse files Browse the repository at this point in the history
…ts if none are configured
  • Loading branch information
MaZderMind committed Apr 11, 2017
1 parent 7f608dc commit 746a5e1
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions templates/docker.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@
[frontends."frontend-{{getServiceBackend $container $serviceName}}"]
backend = "backend-{{getServiceBackend $container $serviceName}}"
passHostHeader = {{getServicePassHostHeader $container $serviceName}}
whitelistSourceRange = [{{range getWhitelistSourceRange $container}}
"{{.}}",
{{end}}]
{{if getWhitelistSourceRange $container}}
whitelistSourceRange = [{{range getWhitelistSourceRange $container}}
"{{.}}",
{{end}}]
{{end}}
priority = {{getServicePriority $container $serviceName}}
entryPoints = [{{range getServiceEntryPoints $container $serviceName}}
"{{.}}",
Expand All @@ -57,9 +59,11 @@
[frontends."frontend-{{$frontend}}"]
backend = "backend-{{getBackend $container}}"
passHostHeader = {{getPassHostHeader $container}}
whitelistSourceRange = [{{range getWhitelistSourceRange $container}}
"{{.}}",
{{end}}]
{{if getWhitelistSourceRange $container}}
whitelistSourceRange = [{{range getWhitelistSourceRange $container}}
"{{.}}",
{{end}}]
{{end}}
priority = {{getPriority $container}}
entryPoints = [{{range getEntryPoints $container}}
"{{.}}",
Expand Down

0 comments on commit 746a5e1

Please sign in to comment.