Merge pull request #4521 from jannispinter/acme-custom-server

luci-app-acme: Add option for custom ACME server
This commit is contained in:
Jo-Philipp Wich 2020-10-17 17:43:11 +02:00 committed by GitHub
commit 3220c55edb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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"));