Generalize Rewrite Block Creation
This commit is contained in:
parent
ed5410df38
commit
67654a6fd5
11 changed files with 71 additions and 396 deletions
|
|
@ -1283,11 +1283,6 @@ stream {
|
|||
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 }}
|
||||
{{ $proxySetHeader }} Accept-Encoding "";
|
||||
{{ end }}
|
||||
|
||||
{{/* Add any additional configuration defined */}}
|
||||
{{ $location.ConfigurationSnippet }}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue