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

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

Issue 29759624: #10493 - Redirects for msf edge (Closed)
Patch Set: Created April 23, 2018, 3:45 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 if ($arg_application = "com.ume.browser.global") 51 if ($arg_application = "com.ume.browser.global")
52 { 52 {
53 set $use_alternative_resource_flags "${use_alternative_resource_flags}+UME"; 53 set $use_alternative_resource_flags "${use_alternative_resource_flags}+UME";
54 } 54 }
55 55
56 if ($geoip_country_code = "DE") 56 if ($geoip_country_code = "DE")
57 { 57 {
58 set $use_alternative_resource_flags "${use_alternative_resource_flags}+LOCATIO N"; 58 set $use_alternative_resource_flags "${use_alternative_resource_flags}+LOCATIO N";
59 } 59 }
60 60
61 # http://hub.eyeo.com/issues/10493
62 if ($arg_application = "com.microsoft.emmx")
63 {
64 set $use_alternative_resource_flags "${use_alternative_resource_flags}+MSF";
65 }
66
61 ### http://hub.eyeo.com/issues/3924 for Chinese SBrowser video exceptions (1/4) 67 ### http://hub.eyeo.com/issues/3924 for Chinese SBrowser video exceptions (1/4)
62 if ($arg_application = "sbrowser") 68 if ($arg_application = "sbrowser")
63 { 69 {
64 set $use_alternative_resource_flags "SBROWSER"; 70 set $use_alternative_resource_flags "SBROWSER";
65 } 71 }
66 72
67 ### http://hub.eyeo.com/issues/3924 for Chinese SBrowser video exceptions (2/4) 73 ### http://hub.eyeo.com/issues/3924 for Chinese SBrowser video exceptions (2/4)
68 if ($arg_addonName = "adblockplussbrowser") 74 if ($arg_addonName = "adblockplussbrowser")
69 { 75 {
70 set $use_alternative_resource_flags "${use_alternative_resource_flags}+ABPSBRO WSER"; 76 set $use_alternative_resource_flags "${use_alternative_resource_flags}+ABPSBRO WSER";
(...skipping 27 matching lines...) Expand all
98 if ($use_alternative_resource_flags = "ZTE+UME") 104 if ($use_alternative_resource_flags = "ZTE+UME")
99 { 105 {
100 rewrite ^/exceptionrules\.(.+) /exceptionrules-minimal.$1 break; 106 rewrite ^/exceptionrules\.(.+) /exceptionrules-minimal.$1 break;
101 rewrite ^/easylist\.(.+) /easylist-minimal.$1 break; 107 rewrite ^/easylist\.(.+) /easylist-minimal.$1 break;
102 rewrite ^/easylistchina\.(.+) /easylistchina-minimal.$1 break; 108 rewrite ^/easylistchina\.(.+) /easylistchina-minimal.$1 break;
103 rewrite ^/advblock\.(.+) /advblock-minimal.$1 break; 109 rewrite ^/advblock\.(.+) /advblock-minimal.$1 break;
104 rewrite ^/easylistchina\+easylist\.(.+) /easylistchina-minimal+easylist-minima l.$1 break; 110 rewrite ^/easylistchina\+easylist\.(.+) /easylistchina-minimal+easylist-minima l.$1 break;
105 rewrite ^/ruadlist\+easylist\.(.+) /ruadlist-minimal+easylist-minimal.$1 break ; 111 rewrite ^/ruadlist\+easylist\.(.+) /ruadlist-minimal+easylist-minimal.$1 break ;
106 } 112 }
107 113
114 # http://hub.eyeo.com/issues/10493
115 if ($use_alternative_resource_flags = "ZTE+MSF")
mathias 2018/04/23 17:49:28 How is this related to ZTE?
116 {
117 rewrite ^/exceptionrules\.(.+) /exceptionrules-minimal.$1 break;
118 rewrite ^/easylist\.(.+) /easylist-minified.$1 break;
119 rewrite ^/easyprivacy\.(.+) /easyprivacy-minified.$1 break;
120 rewrite ^/fanboy-social\.(.+) /fanboy-social-minified.$1 break;
121 rewrite ^/abpindo+easylist\.(.+) /abpindo+easylist-minified.$1 break;
122 rewrite ^/abpvn+easylist\.(.+) /abpvn+easylist-minified.$1 break;
123 rewrite ^/bulgarian_list+easylist\.(.+) /bulgarian_list+easylist-minified.$1 b reak;
124 rewrite ^/easylistchina+easylist\.(.+) /easylistchina+easylist-minified.$1 bre ak;
125 rewrite ^/easylistczechslovak+easylist\.(.+) /easylistczechslovak+easylist-min ified.$1 break;
126 rewrite ^/easylistdutch+easylist\.(.+) /easylistdutch+easylist-minified.$1 bre ak;
127 rewrite ^/easylistgermany+easylist\.(.+) /easylistgermany+easylist-minified.$1 break;
128 rewrite ^/israellist+easylist\.(.+) /israellist+easylist-minified.$1 break;
129 rewrite ^/easylistitaly+easylist\.(.+) /easylistitaly+easylist-minified.$1 bre ak;
130 rewrite ^/easylistlithuania+easylist\.(.+) /easylistlithuania+easylist-minifie d.$1 break;
131 rewrite ^/easylistpolish+easylist\.(.+) /easylistpolish+easylist-minified.$1 b reak;
132 rewrite ^/easylistspanish+easylist\.(.+) /easylistspanish+easylist-minified.$1 break;
133 rewrite ^/latvianlist+easylist\.(.+) /latvianlist+easylist-minified.$1 break;
134 rewrite ^/liste_fr+easylist\.(.+) /liste_fr+easylist-minified.$1 break;
135 rewrite ^/liste_ar+liste_fr+easylist\.(.+) /liste_ar+liste_fr+easylist-minifie d.$1 break;
136 rewrite ^/rolist+easylist\.(.+) /rolist+easylist-minified.$1 break;
137 rewrite ^/ruadlist+easylist\.(.+) /ruadlist+easylist-minified.$1 break;
138 }
139
108 ### http://hub.eyeo.com/issues/3924 for Chinese SBrowser video exceptions (4/4) 140 ### http://hub.eyeo.com/issues/3924 for Chinese SBrowser video exceptions (4/4)
109 if ($use_alternative_resource_flags = "SBROWSER+ABPSBROWSER+CN") 141 if ($use_alternative_resource_flags = "SBROWSER+ABPSBROWSER+CN")
110 { 142 {
111 rewrite ^/easylistchina\+easylist\.(.+) /easylistchina+easylistchina_complianc e+easylist.$1 break; 143 rewrite ^/easylistchina\+easylist\.(.+) /easylistchina+easylistchina_complianc e+easylist.$1 break;
112 } 144 }
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