X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/5f2de3518b17b1fb18294649f6c238e289ca7835..847ffefc0606eae909ccc4abe752fa1629085011:/cookbooks/planet/templates/default/apache.erb diff --git a/cookbooks/planet/templates/default/apache.erb b/cookbooks/planet/templates/default/apache.erb index dddd5de9f..8790c8032 100644 --- a/cookbooks/planet/templates/default/apache.erb +++ b/cookbooks/planet/templates/default/apache.erb @@ -5,9 +5,13 @@ ServerName planet.openstreetmap.org ServerAlias planet.osm.org ServerAdmin webmaster@openstreetmap.org -<% if port == 443 -%> +<% if port == 443 -%> SSLEngine on + SSLCertificateFile /etc/ssl/certs/planet.openstreetmap.org.pem + SSLCertificateKeyFile /etc/ssl/private/planet.openstreetmap.org.key +<% else -%> + RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/ <% end -%> CustomLog /var/log/apache2/planet.openstreetmap.org-access.log combined @@ -30,8 +34,7 @@ ProxyPass /replication/streaming http://127.0.0.1:8080 - Order deny,allow - Allow from all + Require all granted Redirect /pbf-experimental/ /pbf/