From d01961424d07ea794fbef09dd7b0eee88ce99e46 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 31 Mar 2016 09:43:44 +0200 Subject: [PATCH] move include to server section This replicates the behaviour of location.config and makes the letsencrypt plugin usable again for Dockerfile deployments --- plugins/nginx-vhosts/templates/tcp.server.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/nginx-vhosts/templates/tcp.server.config b/plugins/nginx-vhosts/templates/tcp.server.config index 46cb9546d..ab557e509 100644 --- a/plugins/nginx-vhosts/templates/tcp.server.config +++ b/plugins/nginx-vhosts/templates/tcp.server.config @@ -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 }}