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

Side by Side Diff: modules/trac/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
« no previous file with comments | « modules/statsmaster/manifests/init.pp ('k') | modules/trac/manifests/init.pp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 server { 1 location /
2 server_name <%= @domain %>; 2 {
3 3 fastcgi_pass unix:/tmp/trac-fastcgi.sock;
4 <% if is_default %> 4 fastcgi_split_path_info ^()(.*)$;
5 listen 80 default_server; 5 include /etc/nginx/fastcgi_params;
6 listen [::]:80 default_server; 6 fastcgi_param PATH_INFO $fastcgi_path_info;
7 <% else %>
8 listen 80;
9 listen [::]:80;
10 <% end %>
11
12 location / {
13 rewrite (.*) https://$host$1 permanent;
14 }
15 } 7 }
16 8
17 server { 9 location /chrome/
18 server_name <%= @domain %>; 10 {
19 11 alias /home/trac/htdocs/htdocs/;
20 <% if is_default %>
21 listen 443 ssl default_server;
22 listen [::]:443 ssl default_server;
23 <% else %>
24 listen 443 ssl;
25 listen [::]:443 ssl;
26 <% end %>
27
28 ssl_certificate adblockplus.org_sslcert.pem;
29 ssl_certificate_key adblockplus.org_sslcert.key;
30
31 add_header Strict-Transport-Security max-age=31536000;
32
33 location /
34 {
35 fastcgi_pass unix:/tmp/trac-fastcgi.sock;
36 fastcgi_split_path_info ^()(.*)$;
37 include /etc/nginx/fastcgi_params;
38 fastcgi_param PATH_INFO $fastcgi_path_info;
39 }
40
41 location /chrome/
42 {
43 alias /home/trac/htdocs/htdocs/;
44 }
45 } 12 }
OLDNEW
« no previous file with comments | « modules/statsmaster/manifests/init.pp ('k') | modules/trac/manifests/init.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld