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

Unified Diff: modules/notificationserver/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/notificationserver/files/logrotate ('k') | modules/notificationserver/manifests/init.pp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/notificationserver/files/site.conf
===================================================================
rename from modules/notificationserver/templates/notification.adblockplus.org.erb
rename to modules/notificationserver/files/site.conf
--- a/modules/notificationserver/templates/notification.adblockplus.org.erb
+++ b/modules/notificationserver/files/site.conf
@@ -1,43 +1,7 @@
-# notification.adblockplus.org
-server {
- <% if is_default %>
- listen 80 default_server;
- listen [::]:80 default_server;
- <% else %>
- listen 80;
- listen [::]:80;
- <% end %>
+location /.hg
+{
+ internal;
+}
- server_name notification.adblockplus.org;
- location / {
- rewrite (.*) https://notification.adblockplus.org$1 permanent;
- }
-}
-server {
- <% if is_default %>
- listen 443 ssl default_server;
- listen [::]:443 ssl default_server;
- <% else %>
- listen 443 ssl;
- listen [::]:443 ssl;
- <% end %>
-
- server_name notification.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;
- }
-
- access_log /var/log/nginx/access_log_notification main;
- keepalive_timeout 0;
- root /var/www/notification;
-}
+keepalive_timeout 0;
+root /var/www/notification;
« no previous file with comments | « modules/notificationserver/files/logrotate ('k') | modules/notificationserver/manifests/init.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld