Merge pull request #3174 from Shopify/rewrite-regex
Generalize Rewrite Block Creation and Deprecate AddBaseUrl (not backwards compatible)
This commit is contained in:
commit
71cc6df74f
11 changed files with 71 additions and 396 deletions
|
|
@ -1291,11 +1291,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