Allow usage of non_idempotent option in proxy_next_upstream
This commit is contained in:
parent
132caff5a9
commit
9a9c612f5a
3 changed files with 49 additions and 11 deletions
|
|
@ -788,7 +788,7 @@ stream {
|
|||
proxy_cookie_path {{ $location.Proxy.CookiePath }};
|
||||
|
||||
# In case of errors try the next upstream server before returning an error
|
||||
proxy_next_upstream {{ buildNextUpstream $location.Proxy.NextUpstream }}{{ if $all.Cfg.RetryNonIdempotent }} non_idempotent{{ end }};
|
||||
proxy_next_upstream {{ buildNextUpstream $location.Proxy.NextUpstream $all.Cfg.RetryNonIdempotent }};
|
||||
|
||||
{{/* rewrite only works if the content is not compressed */}}
|
||||
{{ if $location.Rewrite.AddBaseURL }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue