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: Created April 2, 2014, 2:05 p.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
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 %>

Powered by Google App Engine
This is Rietveld