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; |
11 proxy_cache_key $uri; | 11 proxy_cache_key $uri; |
12 proxy_cache_lock on; | 12 proxy_cache_lock on; |
13 proxy_cache_revalidate on; | 13 proxy_cache_revalidate on; |
14 proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504; | 14 proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504; |
15 proxy_cache_valid any 60m; | 15 proxy_cache_valid any 60m; |
16 proxy_hide_header Content-Disposition; | 16 proxy_hide_header Content-Disposition; |
17 proxy_pass https://cdn.adblockcdn.com; | 17 proxy_pass https://cdn.adblockcdn.com; |
18 } | 18 } |
19 | 19 |
20 ### http://hub.eyeo.com/issues/444 for ZTE redirects | 20 ### http://hub.eyeo.com/issues/444 for ZTE redirects |
21 ### http://hub.eyeo.com/issues/496 for bento.de redirects | 21 ### http://hub.eyeo.com/issues/496 for bento.de redirects |
22 set $use_alternative_resource_flags 0; | 22 set $use_alternative_resource_flags 0; |
23 | 23 |
24 if ($arg_addonName ~ ^([Mm]axthon)$) | 24 if ($arg_addonName ~ ^([Mm]axthon)$) |
25 { | 25 { |
26 set $use_alternative_resource_flags "BROWSER"; | 26 set $use_alternative_resource_flags "BROWSER"; |
27 } | 27 } |
28 | 28 |
| 29 ### http://hub.eyeo.com/issues/735 Hack for ABB development build that supports
elemhide: |
| 30 if ($arg_addonVersion ~ ^(2\.)(7|8|9)($|\.).*$) |
| 31 { |
| 32 set $use_alternative_resource_flags "${use_alternative_resource_flags}+SUPPORT
S_ELEMHIDE"; |
| 33 } |
| 34 |
29 if ($arg_addonName ~ ^(adblockplusie)$) | 35 if ($arg_addonName ~ ^(adblockplusie)$) |
30 { | 36 { |
31 set $use_alternative_resource_flags "IE"; | 37 set $use_alternative_resource_flags "IE"; |
32 } | 38 } |
33 | 39 |
34 if ($arg_application ~ ^(yowser|adblockbrowser)$) | 40 if ($arg_application ~ ^(yowser|adblockbrowser)$) |
35 { | 41 { |
36 set $use_alternative_resource_flags "BROWSER"; | 42 set $use_alternative_resource_flags "BROWSER"; |
37 } | 43 } |
38 | 44 |
(...skipping 19 matching lines...) Expand all Loading... |
58 rewrite ^/easylist\.(.+) /easylist_noelemhide.$1 break; | 64 rewrite ^/easylist\.(.+) /easylist_noelemhide.$1 break; |
59 rewrite ^/easylistgermany\+easylist\.(.+) /easylistgermany_noelemhide+easylist
_noelemhide.$1 break; | 65 rewrite ^/easylistgermany\+easylist\.(.+) /easylistgermany_noelemhide+easylist
_noelemhide.$1 break; |
60 rewrite ^/easylistgermany\.(.+) /easylistgermany_noelemhide.$1 break; | 66 rewrite ^/easylistgermany\.(.+) /easylistgermany_noelemhide.$1 break; |
61 } | 67 } |
62 | 68 |
63 if ($use_alternative_resource_flags = "ZTE") | 69 if ($use_alternative_resource_flags = "ZTE") |
64 { | 70 { |
65 rewrite ^/exceptionrules\.(.+) /exceptionrules-minimal.$1 break; | 71 rewrite ^/exceptionrules\.(.+) /exceptionrules-minimal.$1 break; |
66 } | 72 } |
67 | 73 |
OLD | NEW |