]> git.proxmox.com Git - pve-manager.git/commitdiff
nodeconfig: make ACME plugin optional
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 20 Apr 2020 18:50:15 +0000 (20:50 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 3 May 2020 12:10:17 +0000 (14:10 +0200)
and default to the always available 'standalone' http-01 plugin

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
PVE/NodeConfig.pm

index 84a6237d91233bf54fa3fc9942aee373265e8bdb..a09215584a46584d62b260c4e74509ea61b00e46 100644 (file)
@@ -92,8 +92,10 @@ my $acme_domain_desc = {
     plugin => {
        type => 'string',
        format => 'pve-configid',
-       description => 'The plugin ID, default is standalone http',
+       description => 'The ACME plugin ID',
        format_description => 'name of the plugin configuration',
+       optional => 1,
+       default => 'standalone',
     },
     alias => {
        type => 'string',
@@ -267,6 +269,7 @@ sub get_acme_conf {
            return undef if $noerr;
            die "duplicate ACME config for domain '$domain'\n";
        }
+       $parsed->{plugin} //= 'standalone';
        $res->{domains}->{$domain} = $parsed;
     }