1 # DO NOT EDIT - This file is being maintained by Chef
4 ServerName <%= @name %>
5 <% @aliases.each do |alias_name| -%>
6 ServerAlias <%= alias_name %>
8 ServerAdmin webmaster@openstreetmap.org
10 CustomLog /var/log/apache2/<%= @name %>-access.log combined
11 ErrorLog /var/log/apache2/<%= @name %>-error.log
14 SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
15 SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
17 # Let the backend know we are using HTTPS
18 RequestHeader set X-Forwarded-Proto “https”
19 RequestHeader set X-Forwarded-Port “443”
21 ProxyPass / http://localhost:<%= @docker_external_port %>/
27 ServerName <%= @name %>
28 <% @aliases.each do |alias_name| -%>
29 ServerAlias <%= alias_name %>
31 ServerAdmin webmaster@openstreetmap.org
33 CustomLog /var/log/apache2/<%= @name %>-access.log combined
34 ErrorLog /var/log/apache2/<%= @name %>-error.log
36 RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
37 RedirectPermanent / https://<%= @name %>/