]> git.openstreetmap.org Git - chef.git/blob - cookbooks/prometheus/templates/default/apache.erb
Mention .torrent files too in header (instead of only mirrors)
[chef.git] / cookbooks / prometheus / templates / default / apache.erb
1 # DO NOT EDIT - This file is being maintained by Prometheus
2
3 <VirtualHost *:80>
4         ServerName prometheus.openstreetmap.org
5         ServerAlias prometheus.osm.org
6         ServerAdmin webmaster@openstreetmap.org
7
8         CustomLog /var/log/apache2/prometheus.openstreetmap.org-access.log combined
9         ErrorLog /var/log/apache2/prometheus.openstreetmap.org-error.log
10
11         RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
12         Redirect permanent / https://prometheus.openstreetmap.org/
13 </VirtualHost>
14
15 <VirtualHost *:443>
16         ServerName prometheus.openstreetmap.org
17         ServerAdmin webmaster@openstreetmap.org
18
19         CustomLog /var/log/apache2/prometheus.openstreetmap.org-access.log combined
20         ErrorLog /var/log/apache2/prometheus.openstreetmap.org-error.log
21
22         SSLEngine on
23         SSLCertificateFile /etc/ssl/certs/prometheus.openstreetmap.org.pem
24         SSLCertificateKeyFile /etc/ssl/private/prometheus.openstreetmap.org.key
25
26         ProxyPass / http://localhost:3000/
27         ProxyPreserveHost on
28 </VirtualHost>