pleroma/otp/templates/pleroma.cloudflare.index.nginx.conf.j2
changeset 123 e8d0308b94b2
parent 103 78a072bbf3c1
child 163 40b78af86337
--- a/pleroma/otp/templates/pleroma.cloudflare.index.nginx.conf.j2	Thu Jul 09 18:49:48 2020 -0500
+++ b/pleroma/otp/templates/pleroma.cloudflare.index.nginx.conf.j2	Thu Jul 09 19:57:16 2020 -0500
@@ -72,4 +72,9 @@
         proxy_ignore_client_abort on;
         proxy_pass {{pleroma_proxy_pass}};
     }
+
+    # don't expose prometheus stats publicly
+    location /api/pleroma/app_metrics {
+        return 404;
+    }
 }