Follow the redirects for AA
This commit is contained in:
parent
1fac7e6b4f
commit
08bba74c34
1 changed files with 6 additions and 4 deletions
|
@ -145,10 +145,12 @@ class ProxyAutomation(TerraformAutomation):
|
||||||
proxy_set_header Accept-Encoding "";
|
proxy_set_header Accept-Encoding "";
|
||||||
proxy_ssl_server_name on;
|
proxy_ssl_server_name on;
|
||||||
proxy_pass https://bbg.sc.omtrdc.net/b/ss/$1;
|
proxy_pass https://bbg.sc.omtrdc.net/b/ss/$1;
|
||||||
subs_filter_types text/html text/css text/xml application/javascript image/gif;
|
proxy_intercept_errors on;
|
||||||
subs_filter //bbg.sc.omtrdc.net/ /;
|
error_page 302 = @handle_redirects;
|
||||||
subs_filter https://{{ origin.domain_name }}/ /;
|
}
|
||||||
subs_filter "(https:)?//ssc.{{ origin.normalised_domain_name }}/" / r;
|
location @handle_redirects {
|
||||||
|
set $saved_redirect_location '$upstream_http_location';
|
||||||
|
proxy_pass $saved_redirect_location;
|
||||||
}
|
}
|
||||||
location / {
|
location / {
|
||||||
proxy_set_header Accept-Encoding "";
|
proxy_set_header Accept-Encoding "";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue