syncing new setting to descriptions.exs

This commit is contained in:
Alexander Strizhakov 2020-01-10 17:54:54 +03:00
parent 6395ad942c
commit 00aff5f78c
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
2 changed files with 96 additions and 3 deletions

View file

@ -545,6 +545,14 @@ config :pleroma, :config_description, [
5_000 5_000
] ]
}, },
%{
key: :chat_limit,
type: :integer,
description: "Character limit of the instance chat messages",
suggestions: [
5_000
]
},
%{ %{
key: :remote_limit, key: :remote_limit,
type: :integer, type: :integer,
@ -1840,7 +1848,7 @@ config :pleroma, :config_description, [
key: :method, key: :method,
type: :module, type: :module,
description: "The method/service to use for captcha", description: "The method/service to use for captcha",
suggestions: [Pleroma.Captcha.Kocaptcha] suggestions: [Pleroma.Captcha.Kocaptcha, Pleroma.Captcha.Native]
}, },
%{ %{
key: :seconds_valid, key: :seconds_valid,
@ -2028,7 +2036,8 @@ config :pleroma, :config_description, [
suggestions: [ suggestions: [
Pleroma.Web.Metadata.Providers.OpenGraph, Pleroma.Web.Metadata.Providers.OpenGraph,
Pleroma.Web.Metadata.Providers.TwitterCard, Pleroma.Web.Metadata.Providers.TwitterCard,
Pleroma.Web.Metadata.Providers.RelMe Pleroma.Web.Metadata.Providers.RelMe,
Pleroma.Web.Metadata.Providers.Feed
] ]
}, },
%{ %{
@ -2805,6 +2814,13 @@ config :pleroma, :config_description, [
key: :send_user_agent, key: :send_user_agent,
type: :boolean type: :boolean
}, },
%{
key: :user_agent,
type: [:string, :atom],
desctiption:
"what user agent should we use? (default: `:default`), must be string or `:default`",
suggestions: ["Pleroma", :default]
},
%{ %{
key: :adapter, key: :adapter,
type: :keyword, type: :keyword,
@ -3018,5 +3034,82 @@ config :pleroma, :config_description, [
suggestions: [30_000] suggestions: [30_000]
} }
] ]
},
%{
group: :pleroma,
key: :static_fe,
type: :group,
description:
"Render profiles and posts using server-generated HTML that is viewable without using JavaScript.",
children: [
%{
key: :enabled,
type: :boolean,
description: "Enables the rendering of static HTML. Defaults to `false`."
}
]
},
%{
group: :pleroma,
key: :feed,
type: :group,
description: "Configure feed rendering.",
children: [
%{
key: :post_title,
type: :map,
description: "Configure title rendering.",
children: [
%{
key: :max_length,
type: :integer,
description: "Maximum number of characters before truncating title.",
suggestions: [100]
},
%{
key: :omission,
type: :string,
description: "Replacement which will be used after truncating string.",
suggestions: ["..."]
}
]
}
]
},
%{
group: :pleroma,
key: :mrf_object_age,
type: :group,
description: "Rejects or delists posts based on their age when received.",
children: [
%{
key: :threshold,
type: :integer,
description: "Required age (in seconds) of a post before actions are taken.",
suggestions: [172_800]
},
%{
key: :actions,
type: {:list, :atom},
description:
"A list of actions to apply to the post. `:delist` removes the post from public timelines; " <>
"`:strip_followers` removes followers from the ActivityPub recipient list, ensuring they won't be delivered to home timelines; " <>
"`:reject` rejects the message entirely",
suggestions: [:delist, :strip_followers, :reject]
}
]
},
%{
group: :pleroma,
key: :modules,
type: :group,
description: "Custom Runtime Modules.",
children: [
%{
key: :runtime_dir,
type: :string,
description: "A path to custom Elixir modules (such as MRF policies)."
}
]
} }
] ]