Description: Add new fields for frontend configuration.
authorlain <lain@soykaf.club>
Mon, 3 Aug 2020 14:39:01 +0000 (16:39 +0200)
committerlain <lain@soykaf.club>
Mon, 3 Aug 2020 14:39:01 +0000 (16:39 +0200)
config/description.exs

index b96fe9705b44c699055f635a537093f4a7c1bc36..969d50a1d09f02993b5caf1a47cabbad6ea289c0 100644 (file)
@@ -3515,6 +3515,23 @@ config :pleroma, :config_description, [
             key: "ref",
             type: :string,
             description: "reference of the installed primary frontend to be used"
+          },
+          %{
+            key: "git",
+            type: :string,
+            description: "URL of the git repository of the frontend"
+          },
+          %{
+            key: "build_url",
+            type: :string,
+            description:
+              "Either an url to a zip file containing the frontend or a template to build it by inserting the `ref`. The string `${ref}` will be replaced by the configured `ref`.",
+            example: "https://some.url/builds/${ref}.zip"
+          },
+          %{
+            key: "build_dir",
+            type: :string,
+            description: "The directory inside the zip file "
           }
         ]
       },
@@ -3532,6 +3549,23 @@ config :pleroma, :config_description, [
             key: "ref",
             type: :string,
             description: "reference of the installed Admin frontend to be used"
+          },
+          %{
+            key: "git",
+            type: :string,
+            description: "URL of the git repository of the frontend"
+          },
+          %{
+            key: "build_url",
+            type: :string,
+            description:
+              "Either an url to a zip file containing the frontend or a template to build it by inserting the `ref`. The string `${ref}` will be replaced by the configured `ref`.",
+            example: "https://some.url/builds/${ref}.zip"
+          },
+          %{
+            key: "build_dir",
+            type: :string,
+            description: "The directory inside the zip file "
           }
         ]
       }