]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/templates/default/apache.erb
Block external access to prometheus admin API
[chef.git] / cookbooks / prometheus / templates / default / apache.erb
index 1dead4474328dd5ffcdf57e03c8af18ae9327aa4..e6290caedeb789ee7296eb2face75c1b4c0e6533 100644 (file)
@@ -23,6 +23,7 @@
        SSLCertificateFile /etc/ssl/certs/prometheus.openstreetmap.org.pem
        SSLCertificateKeyFile /etc/ssl/private/prometheus.openstreetmap.org.key
 
+       Redirect 403 /prometheus/api/v1/admin
        ProxyPass /prometheus http://localhost:9090/prometheus
        Redirect 403 /alertmanager/api
        ProxyPass /alertmanager http://localhost:9093/alertmanager