{{ if .DOKKU_APP_LISTENERS }} upstream {{ .APP }} { {{ range .DOKKU_APP_LISTENERS | split " " }} server {{ . }}; {{ end }}} {{ else if .PASSED_LISTEN_IP_PORT }} upstream {{ .APP }} { server {{ .DOKKU_APP_LISTEN_IP }}:{{ .DOKKU_APP_LISTEN_PORT }}; } {{ end }}