Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/downloadserver/files/site.conf

Issue 29338013: Issue 3764 - Redirect adblockplus(chrome|chrome-experimental|opera)/updates.xml to CWS (Closed)
Patch Set: Created March 9, 2016, 10:51 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/downloadserver/files/site.conf
===================================================================
--- a/modules/downloadserver/files/site.conf
+++ b/modules/downloadserver/files/site.conf
@@ -13,24 +13,30 @@ location /.hg
# Since newer versions should use the new devbuild and release
# build update URLs requested by libadblockplus, leaving this
# redirect around won't really hurt.
location /devbuilds/adblockplusandroid/updates.xml
{
rewrite ^ https://adblockplus.org/androidupdates.xml?$query_string redirect;
}
-location ~ (/devbuilds)?/adblockbrowser/updates.xml {
+location ~ ^(/devbuilds)?/adblockbrowser/updates.xml
+{
fastcgi_pass unix:/tmp/multiplexer-fastcgi.sock;
include fastcgi_params;
fastcgi_cache adblockbrowserupdates;
fastcgi_cache_valid 200 10m;
fastcgi_cache_key "$request_uri";
}
+location ~ ^/devbuilds/adblockplus(chrome|chrome-experimental|opera)/updates.xml
+{
+ rewrite ^ https://clients2.google.com/service/update2/crx?$query_string redirect;
+}
+
location /devbuilds
{
# This is necessary since ABP for Android revisions 323 to 337 crash when
# detecting an update. Fortunately, we repeated the revision in addonVersion
# in these versions for some reason, so we can use that pattern to detect
# them.
if ($arg_addonVersion ~ "^1\.2\.1\.3\d\d\.3\d\d$")
{
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld