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

Unified Diff: modules/filterserver/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/filterserver/files/site.conf
===================================================================
rename from modules/filterserver/templates/easylist-downloads.adblockplus.org.erb
rename to modules/filterserver/files/site.conf
--- a/modules/filterserver/templates/easylist-downloads.adblockplus.org.erb
+++ b/modules/filterserver/files/site.conf
@@ -1,38 +1,14 @@
-server {
- <% if is_default %>
- listen 80 default_server;
- listen [::]:80 default_server;
- listen 443 ssl default_server;
- listen [::]:443 ssl default_server;
- <% else %>
- listen 80;
- listen [::]:80;
- listen 443 ssl;
- listen [::]:443 ssl;
- <% end %>
+root /var/www/easylist;
+keepalive_timeout 0;
+charset utf-8;
+gzip_static on;
+default_type text/plain;
- server_name easylist-downloads.adblockplus.org easylist-msie.adblockplus.org;
- access_log /var/log/nginx/access_log_easylist_downloads main;
- root /var/www/easylist;
- keepalive_timeout 0;
- charset utf-8;
- gzip_static on;
- default_type text/plain;
+error_page 403 404 https://easylist.adblockplus.org/;
- ssl_certificate sites-available/easylist-downloads.adblockplus.org_sslcert.pem;
- ssl_certificate_key sites-available/easylist-downloads.adblockplus.org_sslcert.key;
-
- set $id "$scheme:$http_host";
- if ($id = "http:easylist-downloads.adblockplus.org") {
- rewrite (.*) https://$http_host$1 permanent;
- }
-
- error_page 403 404 https://easylist.adblockplus.org/;
-
- # redirect server error pages to the static page /50x.html
- #
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root html;
- }
+# redirect server error pages to the static page /50x.html
+#
+error_page 500 502 503 504 /50x.html;
+location = /50x.html {
+ root html;
}

Powered by Google App Engine
This is Rietveld