apache_module "alias"
apache_module "proxy_http"
+ssl_certificate "chef.openstreetmap.org" do
+ domains ["chef.openstreetmap.org", "chef.osm.org"]
+ fallback_certificate "openstreetmap"
+ notifies :reload, "service[apache2]"
+end
+
apache_site "chef.openstreetmap.org" do
template "apache.erb"
end
CustomLog /var/log/apache2/chef.openstreetmap.org-access.log combined
ErrorLog /var/log/apache2/chef.openstreetmap.org-error.log
+ RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
Redirect permanent / https://chef.openstreetmap.org/
</VirtualHost>
SSLEngine on
SSLProxyEngine on
+ SSLCertificateFile /etc/ssl/certs/chef.openstreetmap.org.pem
+ SSLCertificateKeyFile /etc/ssl/private/chef.openstreetmap.org.key
ProxyPass / https://<%= node[:fqdn] %>:4443/
</VirtualHost>