]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/serverinfo/templates/default/apache.erb
Switch hardware.osm.org to letsencrypt
[chef.git] / cookbooks / serverinfo / templates / default / apache.erb
index 1cb0fe44c6c43972d90b0a344b63e969de029392..04e4a67972764895ae9c11a2289feabd0cb3b251 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/
    Redirect permanent / https://<%= @name %>/
 </VirtualHost>
 
    CustomLog /var/log/apache2/<%= @name %>-access.log combined
    ErrorLog /var/log/apache2/<%= @name %>-error.log
 
-   DocumentRoot <%= @directory %>
-
    SSLEngine on
+   SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
+   SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
+
+   DocumentRoot <%= @directory %>
 </VirtualHost>
 
 <Directory <%= @directory %>>