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: Converted Nagios site configuration and centralized error page configuration Created April 10, 2014, 6:40 a.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
« no previous file with comments | « modules/filterserver/files/logrotate ('k') | modules/filterserver/manifests/init.pp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,7 @@
-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;
-
- 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;
- }
-}
+error_page 403 404 https://easylist.adblockplus.org/;
« no previous file with comments | « modules/filterserver/files/logrotate ('k') | modules/filterserver/manifests/init.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld