Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

Commit

Permalink
REPO-4398 : protect acces for prometheus endpoint .
Browse files Browse the repository at this point in the history
  • Loading branch information
anechifor committed Jun 6, 2019
1 parent 80d170e commit 04ca19e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ http {

location ~ ^(/.*/proxy/alfresco/api/solr/.*)$ {return 403 ;}
location ~ ^(/.*/-default-/proxy/alfresco/api/.*)$ {return 403;}


# Protect access to Prometheus endpoint
location ~ ^(/.*/s/prometheus)$ {return 403;}

location / {
proxy_pass http://alfresco:8080;
}
Expand Down

0 comments on commit 04ca19e

Please sign in to comment.