]> git.openstreetmap.org Git - chef.git/blob - cookbooks/kibana/templates/default/apache.erb
Add a kibana frontend for logstash
[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    Redirect permanent / https://<%= @site %>/
11 </VirtualHost>
12
13 <VirtualHost *:443>
14    ServerName <%= @site %>
15    ServerAdmin webmaster@openstreetmap.org
16
17    CustomLog /var/log/apache2/<%= @site %>-access.log combined
18    ErrorLog /var/log/apache2/<%= @site %>-error.log
19
20    SSLEngine on
21    SSLProxyEngine on
22
23    ProxyPass / http://127.0.0.1:<%= @port %>/
24
25    <Location />
26       AuthType basic
27       AuthName <%= @site %>
28       AuthBasicProvider file
29       AuthUserFile "<%= @passwd %>"
30       Require valid-user
31    </Location>
32 </VirtualHost>