diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-10-18 21:22:21 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-10-18 21:22:21 +0300 |
commit | 524fb0e4c2561f4a2e4c8e58519df991f034c901 (patch) | |
tree | c3940d2ef45022425e6ca9d7520ba0e63c154dfc /config | |
parent | be611b143bf2840c039aaf63dbf1a73d9f9daf7b (diff) | |
download | pleroma-524fb0e4c2561f4a2e4c8e58519df991f034c901.tar.gz pleroma-524fb0e4c2561f4a2e4c8e58519df991f034c901.zip |
[#1668] Restricted access to app metrics endpoint by default. Added ability to configure IP whitelist for this endpoint.
Added tests and documentation.
Diffstat (limited to 'config')
-rw-r--r-- | config/config.exs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/config/config.exs b/config/config.exs index 2c6142360..a7aae5802 100644 --- a/config/config.exs +++ b/config/config.exs @@ -636,7 +636,12 @@ config :pleroma, Pleroma.Emails.UserEmail, config :pleroma, Pleroma.Emails.NewUsersDigestEmail, enabled: false -config :prometheus, Pleroma.Web.Endpoint.MetricsExporter, path: "/api/pleroma/app_metrics" +config :prometheus, Pleroma.Web.Endpoint.MetricsExporter, + enabled: false, + auth: false, + ip_whitelist: [], + path: "/api/pleroma/app_metrics", + format: :text config :pleroma, Pleroma.ScheduledActivity, daily_user_limit: 25, |