Add global upstream template support

This commit is contained in:
Alireza David 2016-10-28 13:00:25 +03:30
parent 804f07612d
commit d14f52c172

View file

@ -102,7 +102,9 @@ upstream {{ $host }} {
{{ end }} {{ end }}
{{ end }} {{ end }}
keepalive 10; {{ if (exists "/etc/nginx/upstream/default") }}
include /etc/nginx/upstream/default;
{{ end }}
} }
{{ $default_host := or ($.Env.DEFAULT_HOST) "" }} {{ $default_host := or ($.Env.DEFAULT_HOST) "" }}