]> git.openstreetmap.org Git - chef.git/blob - cookbooks/kibana/templates/default/apache.erb
0691d8a315cfdc13ef1ac9984e4512a8159dfc6b
[chef.git] / cookbooks / kibana / templates / default / apache.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 <VirtualHost *:80>
4    ServerName <%= @site %>
5    ServerAdmin webmaster@openstreetmap.org
6
7    CustomLog /var/log/apache2/<%= @site %>-access.log combined
8    ErrorLog /var/log/apache2/<%= @site %>-error.log
9
10    RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
11    Redirect permanent / https://<%= @site %>/
12 </VirtualHost>
13
14 <VirtualHost *:443>
15    ServerName <%= @site %>
16    ServerAdmin webmaster@openstreetmap.org
17
18    CustomLog /var/log/apache2/<%= @site %>-access.log combined
19    ErrorLog /var/log/apache2/<%= @site %>-error.log
20
21    SSLEngine on
22    SSLProxyEngine on
23    SSLCertificateFile /etc/ssl/certs/<%= @site %>.pem
24    SSLCertificateKeyFile /etc/ssl/private/<%= @site %>.key
25
26    ProxyPass / http://127.0.0.1:<%= @port %>/
27
28    <Location />
29       AuthType basic
30       AuthName <%= @site %>
31       AuthBasicProvider file
32       AuthUserFile "<%= @passwd %>"
33       Require valid-user
34    </Location>
35 </VirtualHost>