Switch mediawiki sites to letsencrypt certificates
authorTom Hughes <tom@compton.nu>
Sun, 12 Feb 2017 10:10:08 +0000 (10:10 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 12 Feb 2017 10:10:08 +0000 (10:10 +0000)
cookbooks/mediawiki/templates/default/apache.erb

index a3cb02ad1d926c213f22c324f14dd304509e62dc..0e173841c3753e8a675bf004232966d8ca92f934 100644 (file)
@@ -11,6 +11,8 @@
 
 <% if port == 443 -%>
   SSLEngine on
+  SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
+  SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
 
   CustomLog /var/log/apache2/<%= @name %>-secure-access.log combined
   ErrorLog /var/log/apache2/<%= @name %>-secure-error.log