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

Side by Side 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.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 # notification.adblockplus.org 1 location /.hg
2 server { 2 {
3 <% if is_default %> 3 internal;
4 listen 80 default_server; 4 }
5 listen [::]:80 default_server;
6 <% else %>
7 listen 80;
8 listen [::]:80;
9 <% end %>
10 5
11 server_name notification.adblockplus.org; 6 keepalive_timeout 0;
12 location / { 7 root /var/www/notification;
13 rewrite (.*) https://notification.adblockplus.org$1 permanent;
14 }
15 }
16 server {
17 <% if is_default %>
18 listen 443 ssl default_server;
19 listen [::]:443 ssl default_server;
20 <% else %>
21 listen 443 ssl;
22 listen [::]:443 ssl;
23 <% end %>
24
25 server_name notification.adblockplus.org;
26 ssl_certificate sites-available/adblockplus.org_sslcert.pem;
27 ssl_certificate_key sites-available/adblockplus.org_sslcert.key;
28
29 # redirect server error pages to the static page /50x.html
30 #
31 error_page 500 502 503 504 /50x.html;
32 location = /50x.html {
33 root html;
34 }
35
36 location /.hg {
37 internal;
38 }
39
40 access_log /var/log/nginx/access_log_notification main;
41 keepalive_timeout 0;
42 root /var/www/notification;
43 }
OLDNEW
« 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