X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/ee80e6af6c3df40a7b417fb6fb555dd450115c72..45da35a6ec300900fc35596afe37871f1b4a589b:/cookbooks/taginfo/templates/default/apache.erb diff --git a/cookbooks/taginfo/templates/default/apache.erb b/cookbooks/taginfo/templates/default/apache.erb index 288b13ff1..3ae9fed71 100644 --- a/cookbooks/taginfo/templates/default/apache.erb +++ b/cookbooks/taginfo/templates/default/apache.erb @@ -1,14 +1,12 @@ # DO NOT EDIT - This file is being maintained by Chef -<% [80, 443].each do |port| -%> - -> + ServerName <%= @name %> ServerAdmin webmaster@openstreetmap.org -<% if port == 443 -%> SSLEngine on -<% end -%> + SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem + SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key CustomLog /var/log/apache2/<%= @name %>-access.log combined ErrorLog /var/log/apache2/<%= @name %>-error.log @@ -26,7 +24,17 @@ Header setifempty Access-Control-Allow-Origin * -<% end -%> + + + ServerName <%= @name %> + ServerAdmin webmaster@openstreetmap.org + + 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://<%= @name %>/ + > Require all granted