Add workaround in place for sites that load tags locally first
This commit is contained in:
parent
e8f0f01ddf
commit
7d4233c9e8
1 changed files with 8 additions and 0 deletions
|
@ -119,6 +119,14 @@ class ProxyAutomation(TerraformAutomation):
|
|||
listen 443 ssl;
|
||||
server_name origin-{{ origin.id }}.{{ origin.group.group_name | lower }}.smart.{{ smart_zone[:-1] }};
|
||||
resolver 1.1.1.1;
|
||||
location = /english/utag.js {
|
||||
proxy_set_header Accept-Encoding "";
|
||||
proxy_ssl_server_name on;
|
||||
proxy_pass https://{{ origin.domain_name }}/english/utag.js;
|
||||
subs_filter_types text/javascript application/javascript;
|
||||
subs_filter https://{{ origin.domain_name }}/ /;
|
||||
subs_filter "(https:)?//tags.{{ origin.normalised_domain_name }}/" / r;
|
||||
}
|
||||
location ~ (.+)/utag(.+)js$ {
|
||||
proxy_set_header Accept-Encoding "";
|
||||
proxy_ssl_server_name on;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue