supports :status => true, :restart => true, :reload => false
end
+ ssl_certificate details[:site] do
+ domains details[:site]
+ fallback_certificate "openstreetmap"
+ notifies :reload, "service[apache2]"
+ end
+
apache_site details[:site] do
template "apache.erb"
variables details.merge(:passwd => "/etc/kibana/#{name}.passwd")
CustomLog /var/log/apache2/<%= @site %>-access.log combined
ErrorLog /var/log/apache2/<%= @site %>-error.log
+ RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
Redirect permanent / https://<%= @site %>/
</VirtualHost>
SSLEngine on
SSLProxyEngine on
+ SSLCertificateFile /etc/ssl/certs/<%= @site %>.pem
+ SSLCertificateKeyFile /etc/ssl/private/<%= @site %>.key
ProxyPass / http://127.0.0.1:<%= @port %>/