aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander <alex.strizhakov@gmail.com>2019-12-10 12:16:19 +0300
committerAlexander Strizhakov <alex.strizhakov@gmail.com>2020-01-10 15:52:00 +0300
commit4306769671e4859bc9b4c8ca52c186819aae3aea (patch)
tree4d07c17712f27a91013f95a55d2119d8a78b2c2d
parenta71393dd29488eb86d6da23250b05a9b5b04eb81 (diff)
downloadpleroma-4306769671e4859bc9b4c8ca52c186819aae3aea.tar.gz
adapter children
-rw-r--r--config/description.exs54
1 files changed, 51 insertions, 3 deletions
diff --git a/config/description.exs b/config/description.exs
index eeb4a6fe9..9e8c114b5 100644
--- a/config/description.exs
+++ b/config/description.exs
@@ -90,7 +90,23 @@ config :pleroma, :config_description, [
%{
key: :adapter,
type: :keyword,
- description: "Adapter specific options"
+ description: "Adapter specific options",
+ children: [
+ %{
+ key: :ssl_options,
+ type: :keyword,
+ label: "SSL Options",
+ description: "SSL options for HTTP adapter",
+ children: [
+ %{
+ key: :versions,
+ type: {:list, :atom},
+ descriptions: "List of TLS version to use",
+ suggestions: [:tlsv1, :"tlsv1.1", :"tlsv1.2"]
+ }
+ ]
+ }
+ ]
},
%{
key: :proxy_url,
@@ -1463,7 +1479,23 @@ config :pleroma, :config_description, [
%{
key: :adapter,
type: :keyword,
- description: "Adapter specific options"
+ description: "Adapter specific options",
+ children: [
+ %{
+ key: :ssl_options,
+ type: :keyword,
+ label: "SSL Options",
+ description: "SSL options for HTTP adapter",
+ children: [
+ %{
+ key: :versions,
+ type: {:list, :atom},
+ descriptions: "List of TLS version to use",
+ suggestions: [:tlsv1, :"tlsv1.1", :"tlsv1.2"]
+ }
+ ]
+ }
+ ]
},
%{
key: :proxy_url,
@@ -2760,7 +2792,23 @@ config :pleroma, :config_description, [
key: :adapter,
type: :keyword,
description: "Adapter specific options",
- suggestions: []
+ suggestions: [],
+ children: [
+ %{
+ key: :ssl_options,
+ type: :keyword,
+ label: "SSL Options",
+ description: "SSL options for HTTP adapter",
+ children: [
+ %{
+ key: :versions,
+ type: {:list, :atom},
+ descriptions: "List of TLS version to use",
+ suggestions: [:tlsv1, :"tlsv1.1", :"tlsv1.2"]
+ }
+ ]
+ }
+ ]
}
]
},