src.nth.io/

summaryrefslogtreecommitdiff
path: root/pleroma/otp/templates/pleroma.letsencrypt.nginx.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'pleroma/otp/templates/pleroma.letsencrypt.nginx.conf.j2')
-rw-r--r--pleroma/otp/templates/pleroma.letsencrypt.nginx.conf.j25
1 files changed, 5 insertions, 0 deletions
diff --git a/pleroma/otp/templates/pleroma.letsencrypt.nginx.conf.j2 b/pleroma/otp/templates/pleroma.letsencrypt.nginx.conf.j2
index 5a43748..126af36 100644
--- a/pleroma/otp/templates/pleroma.letsencrypt.nginx.conf.j2
+++ b/pleroma/otp/templates/pleroma.letsencrypt.nginx.conf.j2
@@ -69,4 +69,9 @@ server {
proxy_ignore_client_abort on;
proxy_pass {{pleroma_proxy_pass}};
}
+
+ # don't expose prometheus stats publicly
+ location /api/pleroma/app_metrics {
+ return 404;
+ }
}