Make proxy_next_upstream_tries configurable (#2232)
* Make proxy_next_upstream_tries configurable * Code generation
This commit is contained in:
parent
4f5fa47d27
commit
8575769781
9 changed files with 59 additions and 28 deletions
|
|
@ -949,6 +949,7 @@ stream {
|
|||
|
||||
# In case of errors try the next upstream server before returning an error
|
||||
proxy_next_upstream {{ buildNextUpstream $location.Proxy.NextUpstream $all.Cfg.RetryNonIdempotent }};
|
||||
proxy_next_upstream_tries {{ $location.Proxy.NextUpstreamTries }};
|
||||
|
||||
{{/* rewrite only works if the content is not compressed */}}
|
||||
{{ if $location.Rewrite.AddBaseURL }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue