summaryrefslogtreecommitdiff
path: root/config/description.exs
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-10-29 15:35:42 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-10-29 15:35:42 +0400
commitfa902867c07212a7d2936a953037c22a40cda51e (patch)
treee324c9afc7651ee6f79f6718d7b46b09b1ed20be /config/description.exs
parent76c4e80e5a1b59efeeaf7797d9c08081b7a66c5f (diff)
parent0e0a6aef70fc0cac1f9176e4f50a7fe4930242fa (diff)
downloadpleroma-fa902867c07212a7d2936a953037c22a40cda51e.tar.gz
pleroma-fa902867c07212a7d2936a953037c22a40cda51e.zip
Merge remote-tracking branch 'origin/develop' into mutes-blocks-pagination
Diffstat (limited to 'config/description.exs')
-rw-r--r--config/description.exs51
1 files changed, 44 insertions, 7 deletions
diff --git a/config/description.exs b/config/description.exs
index 2a1898922..0bfa9979f 100644
--- a/config/description.exs
+++ b/config/description.exs
@@ -829,13 +829,13 @@ config :pleroma, :config_description, [
key: :autofollowed_nicknames,
type: {:list, :string},
description:
- "Set to nicknames of (local) users that every new user should automatically follow",
- suggestions: [
- "lain",
- "kaniini",
- "lanodan",
- "rinpatch"
- ]
+ "Set to nicknames of (local) users that every new user should automatically follow"
+ },
+ %{
+ key: :autofollowing_nicknames,
+ type: {:list, :string},
+ description:
+ "Set to nicknames of (local) users that automatically follows every newly registered user"
},
%{
key: :attachment_links,
@@ -3722,5 +3722,42 @@ config :pleroma, :config_description, [
suggestions: [2]
}
]
+ },
+ %{
+ group: :prometheus,
+ key: Pleroma.Web.Endpoint.MetricsExporter,
+ type: :group,
+ description: "Prometheus app metrics endpoint configuration",
+ children: [
+ %{
+ key: :enabled,
+ type: :boolean,
+ description: "[Pleroma extension] Enables app metrics endpoint."
+ },
+ %{
+ key: :ip_whitelist,
+ type: [{:list, :string}, {:list, :charlist}, {:list, :tuple}],
+ description:
+ "[Pleroma extension] If non-empty, restricts access to app metrics endpoint to specified IP addresses."
+ },
+ %{
+ key: :auth,
+ type: [:boolean, :tuple],
+ description: "Enables HTTP Basic Auth for app metrics endpoint.",
+ suggestion: [false, {:basic, "myusername", "mypassword"}]
+ },
+ %{
+ key: :path,
+ type: :string,
+ description: "App metrics endpoint URI path.",
+ suggestions: ["/api/pleroma/app_metrics"]
+ },
+ %{
+ key: :format,
+ type: :atom,
+ description: "App metrics endpoint output format.",
+ suggestions: [:text, :protobuf]
+ }
+ ]
}
]