luci-app-acme: Remove update_nginx and update_uhttpd
[project/luci.git] / applications / luci-app-acme / htdocs / luci-static / resources / view / acme.js
index 6380fbe4b41118dc8ab752c7205272d9a91c6655..7587047bbb62b65fcbb6c43d84e27ab55badf248 100644 (file)
@@ -5,13 +5,6 @@
 'require view';
 
 return view.extend({
-       load: function () {
-               return Promise.all([
-                       L.resolveDefault(fs.stat('/usr/sbin/nginx'), {}),
-                       L.resolveDefault(fs.stat('/usr/sbin/uhttpd'), {})
-               ]);
-       },
-
        render: function (stats) {
                var m, s, o;
 
@@ -55,25 +48,6 @@ return view.extend({
                                "Note that all domain names must point at the router in the global DNS."));
                o.datatype = "list(string)";
 
-               if (stats[1].type === 'file') {
-                       o = s.taboption('general', form.Flag, "update_uhttpd", _("Use for uhttpd"),
-                               _("Update the uhttpd config with this certificate once issued " +
-                                       "(only select this for one certificate). " +
-                                       "Is also available luci-app-uhttpd to configure uhttpd form the LuCI interface."));
-                       o.rmempty = false;
-                       o.modalonly = true;
-               }
-
-               if (stats[0].type === 'file') {
-                       o = s.taboption('general', form.Flag, "update_nginx", _("Use for nginx"),
-                               _("Update the nginx config with this certificate once issued " +
-                                       "(only select this for one certificate). " +
-                                       "Nginx must support ssl, if not it won't start as it needs to be " +
-                                       "compiled with ssl support to use cert options"));
-                       o.rmempty = false;
-                       o.modalonly = true;
-               }
-
                o = s.taboption('challenge', 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. " +