A horrible hack for enabling AA first-party
This commit is contained in:
parent
07416771f0
commit
1fac7e6b4f
1 changed files with 11 additions and 13 deletions
|
@ -138,20 +138,18 @@ class ProxyAutomation(TerraformAutomation):
|
||||||
subs_filter https://{{ origin.domain_name }}/ /;
|
subs_filter https://{{ origin.domain_name }}/ /;
|
||||||
subs_filter "(https:)?//tags.{{ origin.normalised_domain_name }}/" / r;
|
subs_filter "(https:)?//tags.{{ origin.normalised_domain_name }}/" / r;
|
||||||
subs_filter "(https:)?//ssc.{{ origin.normalised_domain_name }}/" / r;
|
subs_filter "(https:)?//ssc.{{ origin.normalised_domain_name }}/" / r;
|
||||||
subs_filter ssc.{{ origin.normalised_domain_name }} bbg.sc.omtrdc.net;
|
subs_filter return"http"+(a.ssl?"s":"")+"://"+b+"/b/ss/ return"/b/ss/;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ /b/ss/(.+)$ {
|
||||||
|
proxy_set_header Accept-Encoding "";
|
||||||
|
proxy_ssl_server_name on;
|
||||||
|
proxy_pass https://bbg.sc.omtrdc.net/b/ss/$1;
|
||||||
|
subs_filter_types text/html text/css text/xml application/javascript image/gif;
|
||||||
|
subs_filter //bbg.sc.omtrdc.net/ /;
|
||||||
|
subs_filter https://{{ origin.domain_name }}/ /;
|
||||||
|
subs_filter "(https:)?//ssc.{{ origin.normalised_domain_name }}/" / r;
|
||||||
}
|
}
|
||||||
# This configuration block is commented out while we work on a solution with the analytics team
|
|
||||||
# from USAGM
|
|
||||||
# location ~ /b/ss/(.+)$ {
|
|
||||||
# proxy_set_header Accept-Encoding "";
|
|
||||||
# proxy_ssl_server_name on;
|
|
||||||
# proxy_pass https://bbg.sc.omtrdc.net/b/ss/$1;
|
|
||||||
# subs_filter_types text/html text/css text/xml application/javascript image/gif;
|
|
||||||
# subs_filter //bbg.sc.omtrdc.net/ /;
|
|
||||||
# subs_filter https://{{ origin.domain_name }}/ /;
|
|
||||||
# subs_filter "(https:)?//ssc.{{ origin.normalised_domain_name }}/" / r;
|
|
||||||
# }
|
|
||||||
location / {
|
location / {
|
||||||
proxy_set_header Accept-Encoding "";
|
proxy_set_header Accept-Encoding "";
|
||||||
proxy_ssl_server_name on;
|
proxy_ssl_server_name on;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue