| LEFT | RIGHT |
| 1 # downloads.adblockplus.org | 1 # downloads.adblockplus.org |
| 2 server { | 2 server { |
| 3 listen 80 default_server; | 3 listen 80 default_server; |
| 4 listen [::]:80 default_server; | 4 listen [::]:80 default_server; |
| 5 server_name downloads.adblockplus.org; | 5 server_name downloads.adblockplus.org; |
| 6 location / { | 6 location / { |
| 7 rewrite (.*) https://downloads.adblockplus.org$1 permanent; | 7 rewrite (.*) https://downloads.adblockplus.org$1 permanent; |
| 8 } | 8 } |
| 9 } | 9 } |
| 10 server { | 10 server { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 } | 22 } |
| 23 | 23 |
| 24 location /.hg { | 24 location /.hg { |
| 25 internal; | 25 internal; |
| 26 } | 26 } |
| 27 | 27 |
| 28 # This redirect is necessary since we accidentally set the wrong | 28 # This redirect is necessary since we accidentally set the wrong |
| 29 # update URL in ABP for Android 1.2. It can be removed once we're | 29 # update URL in ABP for Android 1.2. It can be removed once we're |
| 30 # not seeing anyone requesting this file anymore. | 30 # not seeing anyone requesting this file anymore. |
| 31 # Note that this intentionally promotes devbuilds to release builds. | 31 # Note that this intentionally promotes devbuilds to release builds. |
| 32 location /devbuilds/adblockplusandroid/update.json { | 32 # Since newer versions should use the new devbuild and release |
| 33 # build update URLs requested by libadblockplus, leaving this |
| 34 # redirect around won't really hurt. |
| 35 location /devbuilds/adblockplusandroid/updates.xml { |
| 33 rewrite ^ https://adblockplus.org/androidupdates.xml?$query_string redirect; | 36 rewrite ^ https://adblockplus.org/androidupdates.xml?$query_string redirect; |
| 34 } | 37 } |
| 35 | 38 |
| 36 access_log /var/log/nginx/access_log_downloads main; | 39 access_log /var/log/nginx/access_log_downloads main; |
| 37 keepalive_timeout 0; | 40 keepalive_timeout 0; |
| 38 root /var/www/downloads; | 41 root /var/www/downloads; |
| 39 | 42 |
| 40 location /devbuilds { | 43 location /devbuilds { |
| 41 alias /var/www/devbuilds; | 44 alias /var/www/devbuilds; |
| 42 } | 45 } |
| 43 } | 46 } |
| LEFT | RIGHT |