mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 10:51:51 +00:00
luci-app-acme: put validation_method above domains
A user must specify the validation_method first. Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
This commit is contained in:
committed by
Toke Høiland-Jørgensen
parent
72e62c027c
commit
081f1790c7
@@ -68,21 +68,22 @@ return view.extend({
|
||||
o = s.taboption('general', form.Flag, "enabled", _("Enabled"));
|
||||
o.rmempty = false;
|
||||
|
||||
o = s.taboption('general', form.ListValue, 'validation_method', _('Validation method'),
|
||||
_('Standalone mode will use the built-in webserver of acme.sh to issue a certificate. ' +
|
||||
'Webroot mode will use an existing webserver to issue a certificate. ' +
|
||||
'DNS mode will allow you to use the DNS API of your DNS provider to issue a certificate.')
|
||||
);
|
||||
o.value('standalone', _('Standalone'));
|
||||
o.value('webroot', _('Webroot'));
|
||||
o.value('dns', _('DNS'));
|
||||
o.default = 'webroot';
|
||||
|
||||
o = s.taboption('general', form.DynamicList, "domains", _("Domain names"),
|
||||
_("Domain names to include in the certificate. " +
|
||||
"The first name will be the subject name, subsequent names will be alt names. " +
|
||||
"Note that all domain names must point at the router in the global DNS."));
|
||||
o.datatype = "list(string)";
|
||||
|
||||
o = s.taboption('general', form.ListValue, 'validation_method', _('Validation method'),
|
||||
_("Standalone mode will use the built-in webserver of acme.sh to issue a certificate. " +
|
||||
"Webroot mode will use an existing webserver to issue a certificate. " +
|
||||
"DNS mode will allow you to use the DNS API of your DNS provider to issue a certificate."));
|
||||
o.value("standalone", _("Standalone"));
|
||||
o.value("webroot", _("Webroot"));
|
||||
o.value("dns", _("DNS"));
|
||||
o.default = 'webroot';
|
||||
|
||||
o = s.taboption('challenge_webroot', form.Value, 'webroot', _('Webroot directory'),
|
||||
_("Webserver root directory. Set this to the webserver " +
|
||||
"document root to run Acme in webroot mode. The web " +
|
||||
|
||||
Reference in New Issue
Block a user