overleaf/server-ce/hotfix/4.0.1/pr_13229_ce_only.patch
Miguel Serrano 63dbea0092 Merge pull request #13211 from overleaf/jpa-hotfix-4-0-1
[server-pro] prepare hotfix 4.0.1

GitOrigin-RevId: 42b543d5468614a820ca7f9f29c5c6b83d1f7e69
2023-05-31 08:04:41 +00:00

14 lines
324 B
Diff

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