Skip to content

Instantly share code, notes, and snippets.

@m-richo
Created August 20, 2015 05:37
Show Gist options
  • Save m-richo/5b2f3b5318e0f48f80bb to your computer and use it in GitHub Desktop.
Save m-richo/5b2f3b5318e0f48f80bb to your computer and use it in GitHub Desktop.
advanced confd template
upstream backend_hosts {
{{ $nodes := split (getenv "app_servers") ":" }}{{range $nodes}}
server {{.}};{{end}}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment