# DO NOT EDIT - This file is being maintained by Prometheus
ServerName prometheus.openstreetmap.org
ServerAlias prometheus.osm.org
ServerAdmin webmaster@openstreetmap.org
CustomLog /var/log/apache2/prometheus.openstreetmap.org-access.log combined
ErrorLog /var/log/apache2/prometheus.openstreetmap.org-error.log
RedirectPermanent /.well-known/acme-challenge/ http://acme.openstreetmap.org/.well-known/acme-challenge/
Redirect permanent / https://prometheus.openstreetmap.org/
ServerName prometheus.openstreetmap.org
ServerAdmin webmaster@openstreetmap.org
CustomLog /var/log/apache2/prometheus.openstreetmap.org-access.log combined
ErrorLog /var/log/apache2/prometheus.openstreetmap.org-error.log
SSLEngine on
SSLCertificateFile /etc/ssl/certs/prometheus.openstreetmap.org.pem
SSLCertificateKeyFile /etc/ssl/private/prometheus.openstreetmap.org.key
ProxyPass /prometheus http://localhost:9090/prometheus
Redirect 403 /alertmanager/api
ProxyPass /alertmanager http://localhost:9093/alertmanager
ProxyPass /karma http://localhost:8081/karma
ProxyPass / http://localhost:3000/
ProxyPreserveHost on
<% @admin_hosts.each do |host| -%>
Require ip <%= host %>
<% end -%>
<% @admin_hosts.each do |host| -%>
Require ip <%= host %>
<% end -%>