]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/templates/default/apache.erb
Drop unused squid cookbook
[chef.git] / cookbooks / prometheus / templates / default / apache.erb
index b4c7c55ac7c0cab9a36af15d8b836a8b5408cfd3..edc1647af906fcbe20de0ea7e498bb82cf6338ae 100644 (file)
        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 / http://localhost:3000/
        ProxyPreserveHost on
+
+       <Location /alertmanager>
+<% @admin_hosts.each do |host| -%>
+               Require ip <%= host %>
+<% end -%>
+       </Location>
 </VirtualHost>