Add Pleroma.Web.Preload to description.exs
authorAngelina Filippova <linakirsanova@gmail.com>
Mon, 24 Aug 2020 19:43:37 +0000 (22:43 +0300)
committerAngelina Filippova <linakirsanova@gmail.com>
Mon, 24 Aug 2020 19:43:37 +0000 (22:43 +0300)
config/description.exs

index e27abf40f540b8ae7f93f259ababcf0d153dbb67..ebe1f11c4a1e5261ff76ee4a1e6cd729a7095096 100644 (file)
@@ -3571,5 +3571,24 @@ config :pleroma, :config_description, [
         ]
       }
     ]
+  },
+  %{
+    group: :pleroma,
+    key: Pleroma.Web.Preload,
+    type: :group,
+    description: "Preload-related settings",
+    children: [
+      %{
+        key: :providers,
+        type: {:list, :module},
+        description: "List of preload providers to enable",
+        suggestions: [
+          Pleroma.Web.Preload.Providers.Instance,
+          Pleroma.Web.Preload.Providers.User,
+          Pleroma.Web.Preload.Providers.Timelines,
+          Pleroma.Web.Preload.Providers.StatusNet
+        ]
+      }
+    ]
   }
 ]