Add global upstream template support
This commit is contained in:
parent
804f07612d
commit
d14f52c172
1 changed files with 3 additions and 1 deletions
|
@ -102,7 +102,9 @@ upstream {{ $host }} {
|
|||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
keepalive 10;
|
||||
{{ if (exists "/etc/nginx/upstream/default") }}
|
||||
include /etc/nginx/upstream/default;
|
||||
{{ end }}
|
||||
}
|
||||
|
||||
{{ $default_host := or ($.Env.DEFAULT_HOST) "" }}
|
||||
|
|
Loading…
Reference in a new issue