]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/templates/default/apache.erb
Convert mediawiki to use systemd timers
[chef.git] / cookbooks / prometheus / templates / default / apache.erb
index 00760ed436659ccba6466d2d0a53ab1b7ee1ef20..629e409e26e38c6ff3fc0f8689735b9fc0143d4b 100644 (file)
        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
+
+       <Location /alertmanager>
+<% @admin_hosts.each do |host| -%>
+               Require ip <%= host %>
+<% end -%>
+       </Location>
+
+       <Location /karma>
+<% @admin_hosts.each do |host| -%>
+               Require ip <%= host %>
+<% end -%>
+       </Location>
 </VirtualHost>