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:
@@ -26,8 +26,8 @@ server {
|
|||||||
proxy_set_header X-Forwarded-Port $server_port;
|
proxy_set_header X-Forwarded-Port $server_port;
|
||||||
proxy_set_header X-Request-Start $msec;
|
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 }}
|
{{ if $.DOKKU_APP_LISTENERS }}
|
||||||
upstream {{ $.APP }}-{{ $port }} {
|
upstream {{ $.APP }}-{{ $port }} {
|
||||||
{{ range $.DOKKU_APP_LISTENERS | split " " }} server {{ . }}:{{ $port }};{{ end }}
|
{{ range $.DOKKU_APP_LISTENERS | split " " }} server {{ . }}:{{ $port }};{{ end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user