mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
20 lines
464 B
Diff
20 lines
464 B
Diff
|
--- sharelatex.conf
|
||
|
+++ sharelatex.conf
|
||
|
@@ -67,6 +67,16 @@ server {
|
||
|
proxy_http_version 1.1;
|
||
|
}
|
||
|
|
||
|
+ # block external access to metrics
|
||
|
+ location ~* ^/metrics/?$ {
|
||
|
+ return 404 'Not found';
|
||
|
+ }
|
||
|
+
|
||
|
+ # block external access to all health checks /health_check, /health_check/full, etc
|
||
|
+ location ~* ^/health_check {
|
||
|
+ return 404 'Not found';
|
||
|
+ }
|
||
|
+
|
||
|
# Load any extra configuration for this vhost
|
||
|
include /etc/nginx/vhost-extras/overleaf/*.conf;
|
||
|
}
|