OLD | NEW |
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 26 matching lines...) Expand all Loading... |
37 } | 37 } |
38 | 38 |
39 ### http://hub.eyeo.com/issues/735 Hack for ABB development build that supports
elemhide: | 39 ### http://hub.eyeo.com/issues/735 Hack for ABB development build that supports
elemhide: |
40 if ($arg_addonVersion ~ ^2\.(7|8|9)(\..*)?$) | 40 if ($arg_addonVersion ~ ^2\.(7|8|9)(\..*)?$) |
41 { | 41 { |
42 set $use_alternative_resource_flags "${use_alternative_resource_flags}+SUPPORT
S_ELEMHIDE"; | 42 set $use_alternative_resource_flags "${use_alternative_resource_flags}+SUPPORT
S_ELEMHIDE"; |
43 } | 43 } |
44 | 44 |
45 if ($arg_addonName = "libadblockplus-android") | 45 if ($arg_addonName = "libadblockplus-android") |
46 { | 46 { |
47 set $use_alternative_resource_flags "ZTE"; | 47 set $use_alternative_resource_flags "ZTE"; |
48 } | 48 } |
49 | 49 |
50 # http://hub.eyeo.com/issues/1374 | 50 # http://hub.eyeo.com/issues/1374 |
51 if ($arg_application = "com.mx.browser") | 51 if ($arg_application = "com.ume.browser.global") |
52 { | 52 { |
53 set $use_alternative_resource_flags "${use_alternative_resource_flags}+MX" | 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 if ($use_alternative_resource_flags = "BROWSER+LOCATION") | 61 if ($use_alternative_resource_flags = "BROWSER+LOCATION") |
62 { | 62 { |
63 rewrite ^/easylist\.(.+) /easylist_noelemhide.$1 redirect; | 63 rewrite ^/easylist\.(.+) /easylist_noelemhide.$1 redirect; |
64 rewrite ^/easylistgermany\+easylist\.(.+) /easylistgermany_noelemhide+easylist
_noelemhide.$1 redirect; | 64 rewrite ^/easylistgermany\+easylist\.(.+) /easylistgermany_noelemhide+easylist
_noelemhide.$1 redirect; |
65 rewrite ^/easylistgermany\.(.+) /easylistgermany_noelemhide.$1 redirect; | 65 rewrite ^/easylistgermany\.(.+) /easylistgermany_noelemhide.$1 redirect; |
66 } | 66 } |
67 | 67 |
68 if ($use_alternative_resource_flags = "IE+LOCATION") | 68 if ($use_alternative_resource_flags = "IE+LOCATION") |
69 { | 69 { |
70 rewrite ^/easylist\.(.+) /easylist_noelemhide.$1 break; | 70 rewrite ^/easylist\.(.+) /easylist_noelemhide.$1 break; |
71 rewrite ^/easylistgermany\+easylist\.(.+) /easylistgermany_noelemhide+easylist
_noelemhide.$1 break; | 71 rewrite ^/easylistgermany\+easylist\.(.+) /easylistgermany_noelemhide+easylist
_noelemhide.$1 break; |
72 rewrite ^/easylistgermany\.(.+) /easylistgermany_noelemhide.$1 break; | 72 rewrite ^/easylistgermany\.(.+) /easylistgermany_noelemhide.$1 break; |
73 } | 73 } |
74 | 74 |
75 if ($use_alternative_resource_flags = "ZTE") | 75 if ($use_alternative_resource_flags = "ZTE") |
76 { | 76 { |
77 rewrite ^/exceptionrules\.(.+) /exceptionrules-minimal.$1 break; | 77 rewrite ^/exceptionrules\.(.+) /exceptionrules-minimal.$1 break; |
78 } | 78 } |
79 | 79 |
80 if ($use_alternative_resource_flags = "ZTE+MX") | 80 if ($use_alternative_resource_flags = "ZTE+UME") |
81 { | 81 { |
82 rewrite ^/exceptionrules\.(.+) /exceptionrules-minimal.$1 break; | 82 rewrite ^/exceptionrules\.(.+) /exceptionrules-minimal.$1 break; |
83 rewrite ^/easylist\.(.+) /easylist-minimal.$1 break; | 83 rewrite ^/easylist\.(.+) /easylist-minimal.$1 break; |
84 rewrite ^/easylistchina\.(.+) /easylistchina-minimal.$1 break; | 84 rewrite ^/easylistchina\.(.+) /easylistchina-minimal.$1 break; |
85 rewrite ^/advblock\.(.+) /advblock-minimal.$1 break; | 85 rewrite ^/advblock\.(.+) /advblock-minimal.$1 break; |
86 rewrite ^/easylistchina+easylist\.(.+) /easylistchina-minimal+easylist-minimal
.$1 break; | 86 rewrite ^/easylistchina+easylist\.(.+) /easylistchina-minimal+easylist-minimal
.$1 break; |
87 rewrite ^/ruadlist+easylist\.(.+) /ruadlist-minimal+easylist-minimal.$1 break; | 87 rewrite ^/ruadlist+easylist\.(.+) /ruadlist-minimal+easylist-minimal.$1 break; |
88 } | 88 } |
89 | 89 |
OLD | NEW |