Improve SMTP adapter setting descriptions

This commit is contained in:
Mark Felder 2021-02-06 11:55:01 -06:00
parent 9f98885388
commit 85710b026f

View file

@ -243,21 +243,27 @@ config :pleroma, :config_description, [
group: {:subgroup, Swoosh.Adapters.SMTP}, group: {:subgroup, Swoosh.Adapters.SMTP},
key: :relay, key: :relay,
type: :string, type: :string,
description: "`Swoosh.Adapters.SMTP` adapter specific setting", description: "Hostname or IP address",
suggestions: ["smtp.gmail.com"] suggestions: ["smtp.example.com"]
},
%{
group: {:subgroup, Swoosh.Adapters.SMTP},
key: :port,
type: :integer,
description: "SMTP port"
}, },
%{ %{
group: {:subgroup, Swoosh.Adapters.SMTP}, group: {:subgroup, Swoosh.Adapters.SMTP},
key: :username, key: :username,
type: :string, type: :string,
description: "`Swoosh.Adapters.SMTP` adapter specific setting", description: "SMTP auth username",
suggestions: ["pleroma"] suggestions: ["user@example.com"]
}, },
%{ %{
group: {:subgroup, Swoosh.Adapters.SMTP}, group: {:subgroup, Swoosh.Adapters.SMTP},
key: :password, key: :password,
type: :string, type: :string,
description: "`Swoosh.Adapters.SMTP` adapter specific setting", description: "SMTP auth password",
suggestions: ["password"] suggestions: ["password"]
}, },
%{ %{
@ -265,29 +271,22 @@ config :pleroma, :config_description, [
key: :ssl, key: :ssl,
label: "SSL", label: "SSL",
type: :boolean, type: :boolean,
description: "`Swoosh.Adapters.SMTP` adapter specific setting" description: "Use implicit SSL/TLS: e.g., port 465",
}, },
%{ %{
group: {:subgroup, Swoosh.Adapters.SMTP}, group: {:subgroup, Swoosh.Adapters.SMTP},
key: :tls, key: :tls,
label: "TLS", label: "STARTTLS",
type: :atom, type: {:dropdown, :atom},
description: "`Swoosh.Adapters.SMTP` adapter specific setting", description: "Explicit TLS (STARTTLS) mode",
suggestions: [:always, :never, :if_available] suggestions: [:if_available, :always, :never]
}, },
%{ %{
group: {:subgroup, Swoosh.Adapters.SMTP}, group: {:subgroup, Swoosh.Adapters.SMTP},
key: :auth, key: :auth,
type: :atom, type: {:dropdown, :atom},
description: "`Swoosh.Adapters.SMTP` adapter specific setting", description: "SMTP authentication mode",
suggestions: [:always, :never, :if_available] suggestions: [:if_available, :always, :never]
},
%{
group: {:subgroup, Swoosh.Adapters.SMTP},
key: :port,
type: :integer,
description: "`Swoosh.Adapters.SMTP` adapter specific setting",
suggestions: [1025]
}, },
%{ %{
group: {:subgroup, Swoosh.Adapters.SMTP}, group: {:subgroup, Swoosh.Adapters.SMTP},