From: Alexander Date: Tue, 10 Dec 2019 09:16:19 +0000 (+0300) Subject: adapter children X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=4306769671e4859bc9b4c8ca52c186819aae3aea;p=akkoma adapter children --- 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"] + } + ] + } + ] } ] },