Merge pull request #13229 from overleaf/jpa-server-pro-block-metrics-access

[server-pro] block access to metrics and debug endpoints

GitOrigin-RevId: 6f0f09de8e13b4e478eb16eae707acf3b1cd8cbd
This commit is contained in:
Jakob Ackermann 2023-06-06 13:04:57 +01:00 committed by Copybot
parent 2ccc1aeea5
commit a0e8958a9c

View file

@ -4,6 +4,11 @@ server {
root /overleaf/services/web/public/; root /overleaf/services/web/public/;
# block external access to prometheus /metrics
location /metrics {
internal;
}
location / { location / {
proxy_pass http://127.0.0.1:3000; proxy_pass http://127.0.0.1:3000;
proxy_http_version 1.1; proxy_http_version 1.1;