]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/otrs/templates/default/apache.erb
Switch OTRS to letsencrypt
[chef.git] / cookbooks / otrs / templates / default / apache.erb
index 3b889ce3d4980097a0e08cea63f1520b565555b1..e392d87652d6346a23175dc26dbf0e732b2c7605 100644 (file)
@@ -7,6 +7,7 @@
         CustomLog /var/log/apache2/<%= @name %>-access.log combined
         ErrorLog /var/log/apache2/<%= @name %>-error.log
 
+        RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
         RedirectPermanent / https://otrs.openstreetmap.org/
 </VirtualHost>
 
@@ -18,6 +19,8 @@
         ErrorLog /var/log/apache2/<%= @name %>-error.log
 
         SSLEngine on
+        SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
+        SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
 
         ScriptAlias /otrs/ /opt/otrs/bin/cgi-bin/
         Alias /otrs-web/ /opt/otrs/var/httpd/htdocs/