X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/e0948bc62196ce7b4c580835c211c995fed19d95..45da35a6ec300900fc35596afe37871f1b4a589b:/cookbooks/taginfo/templates/default/apache.erb diff --git a/cookbooks/taginfo/templates/default/apache.erb b/cookbooks/taginfo/templates/default/apache.erb index 897cfcd21..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 @@ -21,8 +19,22 @@ CacheEnable disk /api CacheEnable disk /embed CacheStaleOnError off + + + Header setifempty Access-Control-Allow-Origin * + + + + + 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 %>/ -<% end -%> > Require all granted