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

Unified Diff: modules/web/templates/global.conf.erb

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/web/manifests/server.pp ('k') | modules/web/templates/site.conf.erb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/web/templates/global.conf.erb
===================================================================
new file mode 100644
--- /dev/null
+++ b/modules/web/templates/global.conf.erb
@@ -0,0 +1,21 @@
+<% if @aliases %>
+ <% @aliases.each do |vhost_alias| %>
+ server
+ {
+ listen 80;
+ listen [::]:80;
+ listen 443 ssl spdy;
+ listen [::]:443 ssl spdy;
+
+ server_name '<%= vhost_alias %>';
+
+ ssl_certificate adblockplus.org_sslcert.pem;
+ ssl_certificate_key adblockplus.org_sslcert.key;
+
+ location /
+ {
+ rewrite .* https://<%= vhost %>/ redirect;
+ }
+ }
+ <% end %>
+<% end %>
« no previous file with comments | « modules/web/manifests/server.pp ('k') | modules/web/templates/site.conf.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld