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
11 SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
12 SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
14 CustomLog /var/log/apache2/<%= @name %>-access.log combined
15 ErrorLog /var/log/apache2/<%= @name %>-error.log
17 DocumentRoot /srv/<%= @name %>/public
21 SetEnv SECRET_KEY_BASE <%= @secret_key_base %>
25 ServerName <%= @name %>
26 <% @aliases.each do |alias_name| -%>
27 ServerAlias <%= alias_name %>
29 ServerAdmin webmaster@openstreetmap.org
31 CustomLog /var/log/apache2/<%= @name %>-access.log combined
32 ErrorLog /var/log/apache2/<%= @name %>-error.log
34 RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
35 RedirectPermanent / https://<%= @name %>/
38 <Directory /srv/<%= @name %>/public>
42 <Directory /srv/<%= @name %>/app/assets>
46 <Directory /srv/<%= @name %>/vendor/assets>