OLD | NEW |
1 keepalive_timeout 0; | 1 keepalive_timeout 0; |
2 | 2 |
3 location /.hg | 3 location /.hg |
4 { | 4 { |
5 internal; | 5 internal; |
6 } | 6 } |
7 | 7 |
8 location /notification.json | 8 location /notification.json |
9 { | 9 { |
| 10 # Users that were in the browser notification test shouldn't see the same |
| 11 # thing again, so they're not seeing any notifications for now. |
| 12 # See https://issues.adblockplus.org/ticket/2982. |
| 13 if ($arg_lastVersion ~ "-2/[1-3]") |
| 14 { |
| 15 rewrite ^ /empty-notification.json last; |
| 16 } |
| 17 |
10 fastcgi_pass unix:/tmp/multiplexer-fastcgi.sock; | 18 fastcgi_pass unix:/tmp/multiplexer-fastcgi.sock; |
11 include /etc/nginx/fastcgi_params; | 19 include /etc/nginx/fastcgi_params; |
12 fastcgi_cache notification; | 20 fastcgi_cache notification; |
13 fastcgi_cache_key $group; | 21 fastcgi_cache_key $group; |
14 fastcgi_cache_valid any 1m; | 22 fastcgi_cache_valid any 1m; |
15 fastcgi_cache_lock on; | 23 fastcgi_cache_lock on; |
16 } | 24 } |
| 25 |
| 26 location /empty-notification.json |
| 27 { |
| 28 root /var/www; |
| 29 } |
OLD | NEW |