summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-acme
diff options
context:
space:
mode:
authorJannis Pinter <jannis@pinterjann.is>2020-10-17 08:40:55 +0200
committerJannis Pinter <jannis@pinterjann.is>2020-10-17 08:40:55 +0200
commit1ad72c6fb5d1c49147194de4f1bca1eb9d1f8f88 (patch)
tree37fed21dee12c42c31ba0912236e23aa67700b19 /applications/luci-app-acme
parenta2c74579a6987849eb202c94daa2c95b5d8ef72f (diff)
luci-app-acme: Add option for custom ACME server
Signed-off-by: Jannis Pinter <jannis@pinterjann.is>
Diffstat (limited to 'applications/luci-app-acme')
-rw-r--r--applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js b/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js
index 9f9ff079e..f9059f947 100644
--- a/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js
+++ b/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js
@@ -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"));