Refine rewriting rules for tealium
This commit is contained in:
parent
c43dcd36c4
commit
3430e65742
1 changed files with 5 additions and 4 deletions
|
@ -118,10 +118,12 @@ class ProxyAutomation(TerraformAutomation):
|
|||
server {
|
||||
listen 443 ssl;
|
||||
server_name origin-{{ origin.id }}.{{ origin.group.group_name | lower }}.smart.{{ smart_zone[:-1] }};
|
||||
location ~ /utag.js$ {
|
||||
location ~ (.+)/utag(.+)js$ {
|
||||
proxy_set_header Accept-Encoding "";
|
||||
proxy_ssl_server_name on;
|
||||
proxy_pass https://tags.tiqcdn.com/;
|
||||
proxy_pass https://tags.tiqcdn.com/utag/bbg/$1/utag$2js;
|
||||
subs_filter_types text/html text/css text/xml application/javascript;
|
||||
subs_filter //tags.tiqcdn.com/utag/bbg/ /;
|
||||
}
|
||||
location / {
|
||||
proxy_set_header Accept-Encoding "";
|
||||
|
@ -129,8 +131,7 @@ class ProxyAutomation(TerraformAutomation):
|
|||
proxy_pass https://{{ origin.domain_name }}/;
|
||||
subs_filter_types text/html text/css text/xml;
|
||||
subs_filter https://{{ origin.domain_name }}/ /;
|
||||
subs_filter https://tags.{{ origin.normalised_domain_name }}/ /;
|
||||
subs_filter "([^:]|)\\\"https://{{ origin.domain_name }}\\\"" \\1\\\"/\\\";
|
||||
subs_filter "(https:)?//tags.{{ origin.normalised_domain_name }}/" / r;
|
||||
{%- for asset_origin in origin.group.origins | selectattr("assets") -%}
|
||||
{%- for asset_proxy in asset_origin.proxies | selectattr("deprecated", "none") | selectattr("destroyed", "none") -%}
|
||||
{%- if loop.first %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue