luci-app-acme: Add option for custom ACME server 4521/head
authorJannis Pinter <jannis@pinterjann.is>
Sat, 17 Oct 2020 06:40:55 +0000 (08:40 +0200)
committerJannis Pinter <jannis@pinterjann.is>
Sat, 17 Oct 2020 06:40:55 +0000 (08:40 +0200)
Signed-off-by: Jannis Pinter <jannis@pinterjann.is>
applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js

index 9f9ff079e091d9c39ec8299cdcbace5357c43f41..f9059f9472f05544c9295129f5d19ea352372a2d 100644 (file)
@@ -51,6 +51,16 @@ return view.extend({
                                "(use for testing; the certificate won't be valid)."));
                o.rmempty = false;
 
+               o = s.option(form.Flag, "use_acme_server",
+                       _("Custom ACME CA"), _("Use a custom CA instead of Let's Encrypt."));
+               o.depends("use_staging", "0");
+               o.default = false;
+
+               o = s.option(form.Value, "acme_server", _("ACME server URL"),
+                       _("Custom ACME server directory URL."));
+               o.depends("use_acme_server", "1");
+               o.optional = true;
+
                o = s.option(form.ListValue, "keylength", _("Key size"),
                        _("Key size (and type) for the generated certificate."));
                o.value("2048", _("RSA 2048 bits"));