]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/templates/default/apache.erb
Restrict alertmanager web interface to admin users
[chef.git] / cookbooks / prometheus / templates / default / apache.erb
index 00760ed436659ccba6466d2d0a53ab1b7ee1ef20..edc1647af906fcbe20de0ea7e498bb82cf6338ae 100644 (file)
        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>