move include to server section

This replicates the behaviour of location.config and makes the
letsencrypt plugin usable again for Dockerfile deployments
This commit is contained in:
Tobias Brunner
2016-03-31 09:43:44 +02:00
parent e114ab3f20
commit d01961424d

View File

@@ -26,8 +26,8 @@ server {
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Request-Start $msec;
}
include {{ $.DOKKU_ROOT }}/{{ $.APP }}/nginx.conf.d/*.conf;
}
include {{ $.DOKKU_ROOT }}/{{ $.APP }}/nginx.conf.d/*.conf;
{{ if $.DOKKU_APP_LISTENERS }}
upstream {{ $.APP }}-{{ $port }} {
{{ range $.DOKKU_APP_LISTENERS | split " " }} server {{ . }}:{{ $port }};{{ end }}