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

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

Issue 29831567: #12255 - Serve compliance lists to extensions in China (Closed)
Patch Set: For comment #2 Created July 16, 2018, 4 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 root /var/www/easylist; 1 root /var/www/easylist;
2 keepalive_timeout 0; 2 keepalive_timeout 0;
3 charset utf-8; 3 charset utf-8;
4 gzip_static on; 4 gzip_static on;
5 default_type text/plain; 5 default_type text/plain;
6 6
7 # http://hub.eyeo.com/issues/262 7 # http://hub.eyeo.com/issues/262
8 location /filters/easylist-min.txt 8 location /filters/easylist-min.txt
9 { 9 {
10 proxy_cache filters; 10 proxy_cache filters;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 } 53 }
54 54
55 # http://hub.eyeo.com/issues/1374 55 # http://hub.eyeo.com/issues/1374
56 # http://hub.eyeo.com/issues/10493 56 # http://hub.eyeo.com/issues/10493
57 # http://hub.eyeo.com/issues/10517 57 # http://hub.eyeo.com/issues/10517
58 if ($arg_application ~ (com\.microsoft\.emmx|com\.ume\.browser\.global|org\.chro mium\.chrome)) 58 if ($arg_application ~ (com\.microsoft\.emmx|com\.ume\.browser\.global|org\.chro mium\.chrome))
59 { 59 {
60 set $use_alternative_resource_flags "${use_alternative_resource_flags}+MIN"; 60 set $use_alternative_resource_flags "${use_alternative_resource_flags}+MIN";
61 } 61 }
62 62
63 # http://hub.eyeo.com/issues/12255
64 if ($arg_addonName ~ ^(adblockplus[chrome|firefox|edge|opera])$)
65 {
66 set $use_alternative_resource_flags "ABP_WEB_EXTENSION";
67 }
68
63 ### http://hub.eyeo.com/issues/3924 for Chinese SBrowser video exceptions (1/4) 69 ### http://hub.eyeo.com/issues/3924 for Chinese SBrowser video exceptions (1/4)
64 if ($arg_application = "sbrowser") 70 if ($arg_application = "sbrowser")
65 { 71 {
66 set $use_alternative_resource_flags "SBROWSER"; 72 set $use_alternative_resource_flags "SBROWSER";
67 } 73 }
68 74
69 ### http://hub.eyeo.com/issues/3924 for Chinese SBrowser video exceptions (2/4) 75 ### http://hub.eyeo.com/issues/3924 for Chinese SBrowser video exceptions (2/4)
70 if ($arg_addonName = "adblockplussbrowser") 76 if ($arg_addonName = "adblockplussbrowser")
71 { 77 {
72 set $use_alternative_resource_flags "${use_alternative_resource_flags}+ABPSBRO WSER"; 78 set $use_alternative_resource_flags "${use_alternative_resource_flags}+ABPSBRO WSER";
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 rewrite ^/easylistlithuania\+easylist\.(.+) /easylistlithuania+easylist-minifi ed.$1 break; 117 rewrite ^/easylistlithuania\+easylist\.(.+) /easylistlithuania+easylist-minifi ed.$1 break;
112 rewrite ^/easylistpolish\+easylist\.(.+) /easylistpolish+easylist-minified.$1 break; 118 rewrite ^/easylistpolish\+easylist\.(.+) /easylistpolish+easylist-minified.$1 break;
113 rewrite ^/easylistspanish\+easylist\.(.+) /easylistspanish+easylist-minified.$ 1 break; 119 rewrite ^/easylistspanish\+easylist\.(.+) /easylistspanish+easylist-minified.$ 1 break;
114 rewrite ^/latvianlist\+easylist\.(.+) /latvianlist+easylist-minified.$1 break; 120 rewrite ^/latvianlist\+easylist\.(.+) /latvianlist+easylist-minified.$1 break;
115 rewrite ^/liste_fr\+easylist\.(.+) /liste_fr+easylist-minified.$1 break; 121 rewrite ^/liste_fr\+easylist\.(.+) /liste_fr+easylist-minified.$1 break;
116 rewrite ^/liste_ar\+liste_fr\+easylist\.(.+) /liste_ar+liste_fr+easylist-minif ied.$1 break; 122 rewrite ^/liste_ar\+liste_fr\+easylist\.(.+) /liste_ar+liste_fr+easylist-minif ied.$1 break;
117 rewrite ^/rolist\+easylist\.(.+) /rolist+easylist-minified.$1 break; 123 rewrite ^/rolist\+easylist\.(.+) /rolist+easylist-minified.$1 break;
118 rewrite ^/ruadlist\+easylist\.(.+) /ruadlist+easylist-minified.$1 break; 124 rewrite ^/ruadlist\+easylist\.(.+) /ruadlist+easylist-minified.$1 break;
119 } 125 }
120 126
127 # http://hub.eyeo.com/issues/12255
121 ### http://hub.eyeo.com/issues/3924 for Chinese SBrowser video exceptions (4/4) 128 ### http://hub.eyeo.com/issues/3924 for Chinese SBrowser video exceptions (4/4)
122 if ($use_alternative_resource_flags = "SBROWSER+ABPSBROWSER+CN") 129 if ($use_alternative_resource_flags ~ ^((SBROWSER\+ABPSBROWSER|ABP_WEB_EXTENSION )\+CN)$)
123 { 130 {
124 rewrite ^/easylistchina\+easylist\.(.+) /easylistchina+easylistchina_complianc e+easylist.$1 break; 131 rewrite ^/easylistchina\+easylist\.(.+) /easylistchina+easylistchina_complianc e+easylist.$1 break;
125 } 132 }
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