]> git.openstreetmap.org Git - chef.git/commitdiff
Switch the mailman web interface to use https
authorTom Hughes <tom@compton.nu>
Mon, 9 Sep 2013 11:16:00 +0000 (12:16 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 9 Sep 2013 11:16:00 +0000 (12:16 +0100)
cookbooks/mailman/recipes/default.rb
cookbooks/mailman/templates/default/apache.erb

index 4013058bcad0b94068f0c24cba7bd16741607241..94de38295c20621a8ca655015fd5ec9d0f43306a 100644 (file)
@@ -17,7 +17,7 @@
 # limitations under the License.
 #
 
-include_recipe "apache"
+include_recipe "apache::ssl"
 
 package "mailman"
 
index 396bcd56d85dd7d10590f2590eb3626e67682e5d..6b12ce994ec951c57608360d88b0ec4ce80bb8df 100644 (file)
@@ -1,6 +1,16 @@
 # DO NOT EDIT - This file is being maintained by Chef
 
 <VirtualHost *:80>
+        ServerName <%= @name %>
+        ServerAdmin postmaster@openstreetmap.org
+
+        CustomLog /var/log/apache2/<%= @name %>-access.log combined
+        ErrorLog /var/log/apache2/<%= @name %>-error.log
+
+        RedirectPermanent / https://<%= @name %>/
+</VirtualHost>
+
+<VirtualHost *:443>
        ServerName <%= @name %>
        ServerAdmin postmaster@openstreetmap.org
        ServerSignature On