Fix upstream positioning in docs. Closes #2031

[ci skip]
This commit is contained in:
Jose Diaz-Gonzalez
2016-03-28 03:18:03 -04:00
parent 20dfd20416
commit 8cf20db7e1
2 changed files with 11 additions and 12 deletions

View File

@@ -20,6 +20,11 @@ Dokku uses a templating library by the name of [sigil](https://github.com/glider
### Example Custom Template
```
upstream {{ .APP }} {
{{ range .DOKKU_APP_LISTENERS | split " " }}
server {{ . }};
{{ end }}
}
server {
listen [::]:{{ .NGINX_PORT }};
listen {{ .NGINX_PORT }};
@@ -42,12 +47,6 @@ server {
proxy_set_header X-Request-Start $msec;
}
include {{ .DOKKU_ROOT }}/{{ .APP }}/nginx.conf.d/*.conf;
upstream {{ .APP }} {
{{ range .DOKKU_APP_LISTENERS | split " " }}
server {{ . }};
{{ end }}
}
}
```