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

Side by Side Diff: modules/downloadserver/files/site.conf

Issue 29338235: Issue 3764 - Got rid of redundant query parameters when redirecting development build updates (Closed)
Patch Set: Created March 14, 2016, 2:22 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 keepalive_timeout 0; 1 keepalive_timeout 0;
2 root /var/www/downloads; 2 root /var/www/downloads;
3 3
4 location /.hg 4 location /.hg
5 { 5 {
6 internal; 6 internal;
7 } 7 }
8 8
9 # This redirect is necessary since we accidentally set the wrong 9 # This redirect is necessary since we accidentally set the wrong
10 # update URL in ABP for Android 1.2. It can be removed once we're 10 # update URL in ABP for Android 1.2. It can be removed once we're
11 # not seeing anyone requesting this file anymore. 11 # not seeing anyone requesting this file anymore.
12 # Note that this intentionally promotes devbuilds to release builds. 12 # Note that this intentionally promotes devbuilds to release builds.
13 # Since newer versions should use the new devbuild and release 13 # Since newer versions should use the new devbuild and release
14 # build update URLs requested by libadblockplus, leaving this 14 # build update URLs requested by libadblockplus, leaving this
15 # redirect around won't really hurt. 15 # redirect around won't really hurt.
16 location /devbuilds/adblockplusandroid/updates.xml 16 location /devbuilds/adblockplusandroid/updates.xml
17 { 17 {
18 rewrite ^ https://adblockplus.org/androidupdates.xml?$query_string redirect; 18 rewrite ^ https://adblockplus.org/androidupdates.xml redirect;
19 } 19 }
20 20
21 location ~ ^(/devbuilds)?/adblockbrowser/updates.xml 21 location ~ ^(/devbuilds)?/adblockbrowser/updates.xml
22 { 22 {
23 fastcgi_pass unix:/tmp/multiplexer-fastcgi.sock; 23 fastcgi_pass unix:/tmp/multiplexer-fastcgi.sock;
24 include fastcgi_params; 24 include fastcgi_params;
25 fastcgi_cache adblockbrowserupdates; 25 fastcgi_cache adblockbrowserupdates;
26 fastcgi_cache_valid 200 10m; 26 fastcgi_cache_valid 200 10m;
27 fastcgi_cache_key "$request_uri"; 27 fastcgi_cache_key "$request_uri";
28 } 28 }
29 29
30 location ~ ^/devbuilds/adblockplus(chrome|chrome-experimental|opera)/updates.xml 30 location ~ ^/devbuilds/adblockplus(chrome|chrome-experimental|opera)/updates.xml
31 { 31 {
32 rewrite ^ https://clients2.google.com/service/update2/crx?$query_string redire ct; 32 rewrite ^ https://clients2.google.com/service/update2/crx redirect;
33 } 33 }
34 34
35 location /devbuilds 35 location /devbuilds
36 { 36 {
37 # This is necessary since ABP for Android revisions 323 to 337 crash when 37 # This is necessary since ABP for Android revisions 323 to 337 crash when
38 # detecting an update. Fortunately, we repeated the revision in addonVersion 38 # detecting an update. Fortunately, we repeated the revision in addonVersion
39 # in these versions for some reason, so we can use that pattern to detect 39 # in these versions for some reason, so we can use that pattern to detect
40 # them. 40 # them.
41 if ($arg_addonVersion ~ "^1\.2\.1\.3\d\d\.3\d\d$") 41 if ($arg_addonVersion ~ "^1\.2\.1\.3\d\d\.3\d\d$")
42 { 42 {
43 return 200 '{}'; 43 return 200 '{}';
44 } 44 }
45 alias /var/www/devbuilds; 45 alias /var/www/devbuilds;
46 } 46 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld