adapter children
authorAlexander <alex.strizhakov@gmail.com>
Tue, 10 Dec 2019 09:16:19 +0000 (12:16 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Fri, 10 Jan 2020 12:52:00 +0000 (15:52 +0300)
config/description.exs

index eeb4a6fe98794c7981e291ea7553b9987206e8ba..9e8c114b5de3dc234dc433daeddc00966186a3c3 100644 (file)
@@ -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"]
+              }
+            ]
+          }
+        ]
       }
     ]
   },