is_19575.patch 460 B

12345678910111213141516171819
  1. --- overleaf.conf
  2. +++ overleaf.conf
  3. @@ -67,6 +67,16 @@ server {
  4. proxy_http_version 1.1;
  5. }
  6. + # block external access to metrics
  7. + location ~* ^/metrics/?$ {
  8. + return 404 'Not found';
  9. + }
  10. +
  11. + # block external access to all health checks /health_check, /health_check/full, etc
  12. + location ~* ^/health_check {
  13. + return 404 'Not found';
  14. + }
  15. +
  16. # Load any extra configuration for this vhost
  17. include /etc/nginx/vhost-extras/overleaf/*.conf;
  18. }