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

Unified Diff: modules/downloadserver/files/site.conf

Issue 5734493784637440: Issue 245 - Unify SSL configuration for all servers (Closed)
Patch Set: Created April 2, 2014, 2:05 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: modules/downloadserver/files/site.conf
===================================================================
rename from modules/downloadserver/files/downloads.adblockplus.org
rename to modules/downloadserver/files/site.conf
--- a/modules/downloadserver/files/downloads.adblockplus.org
+++ b/modules/downloadserver/files/site.conf
@@ -1,46 +1,28 @@
-# downloads.adblockplus.org
-server {
- listen 80 default_server;
- listen [::]:80 default_server;
- server_name downloads.adblockplus.org;
- location / {
- rewrite (.*) https://downloads.adblockplus.org$1 permanent;
- }
+keepalive_timeout 0;
+root /var/www/downloads;
+
+# redirect server error pages to the static page /50x.html
+#
+error_page 500 502 503 504 /50x.html;
+location = /50x.html {
+ root html;
}
-server {
- listen 443 ssl default_server;
- listen [::]:443 ssl default_server;
- server_name downloads.adblockplus.org;
- ssl_certificate sites-available/adblockplus.org_sslcert.pem;
- ssl_certificate_key sites-available/adblockplus.org_sslcert.key;
- # redirect server error pages to the static page /50x.html
- #
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root html;
- }
+location /.hg {
+ internal;
+}
- location /.hg {
- internal;
- }
+# This redirect is necessary since we accidentally set the wrong
+# update URL in ABP for Android 1.2. It can be removed once we're
+# not seeing anyone requesting this file anymore.
+# Note that this intentionally promotes devbuilds to release builds.
+# Since newer versions should use the new devbuild and release
+# build update URLs requested by libadblockplus, leaving this
+# redirect around won't really hurt.
+location /devbuilds/adblockplusandroid/updates.xml {
+ rewrite ^ https://adblockplus.org/androidupdates.xml?$query_string redirect;
+}
- # This redirect is necessary since we accidentally set the wrong
- # update URL in ABP for Android 1.2. It can be removed once we're
- # not seeing anyone requesting this file anymore.
- # Note that this intentionally promotes devbuilds to release builds.
- # Since newer versions should use the new devbuild and release
- # build update URLs requested by libadblockplus, leaving this
- # redirect around won't really hurt.
- location /devbuilds/adblockplusandroid/updates.xml {
- rewrite ^ https://adblockplus.org/androidupdates.xml?$query_string redirect;
- }
-
- access_log /var/log/nginx/access_log_downloads main;
- keepalive_timeout 0;
- root /var/www/downloads;
-
- location /devbuilds {
- alias /var/www/devbuilds;
- }
+location /devbuilds {
+ alias /var/www/devbuilds;
}

Powered by Google App Engine
This is Rietveld