diff options
| author | Luke Hoersten <[email protected]> | 2020-07-09 19:57:16 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2020-07-09 19:57:16 -0500 |
| commit | 997c63e2bb7a6d930a130c7d4047fecb742cc8dd (patch) | |
| tree | 17008359ca54fae76de0f4975f5342ba14b99b8a /pleroma/otp/templates/pleroma.cloudflare.nginx.conf.j2 | |
| parent | 19d113bf1103618fe587dee3b4a6b293c3f7ad2e (diff) | |
Added local pleroma prometheus scraping.
Diffstat (limited to 'pleroma/otp/templates/pleroma.cloudflare.nginx.conf.j2')
| -rw-r--r-- | pleroma/otp/templates/pleroma.cloudflare.nginx.conf.j2 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pleroma/otp/templates/pleroma.cloudflare.nginx.conf.j2 b/pleroma/otp/templates/pleroma.cloudflare.nginx.conf.j2 index e64b00c..66058c8 100644 --- a/pleroma/otp/templates/pleroma.cloudflare.nginx.conf.j2 +++ b/pleroma/otp/templates/pleroma.cloudflare.nginx.conf.j2 @@ -64,4 +64,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; + } } |
