]> git.proxmox.com Git - proxmox-acme.git/blobdiff - src/PVE/ACME/DNSChallenge.pm
fix #2732: use actual plugin config data
[proxmox-acme.git] / src / PVE / ACME / DNSChallenge.pm
index b720cd77566ed0103bf039e094ef66cc7f1be6a8..402a501dc2a37fda06a13b89786633e5b60d65fb 100644 (file)
@@ -124,7 +124,16 @@ my $plugins = {
     'da' => {},
     'ddnss' => {},
     'desec' => {},
-    'dgon' => {},
+    'df' => {},
+    'dgon' => {
+       name => 'DigitalOcean DNS',
+       fields => {
+           'DO_API_KEY' => {
+               description => 'The DigitalOcean API Key',
+               type => 'string',
+           },
+       },
+    },
     'dnsimple' => {},
     'do' => {},
     'doapi' => {},
@@ -162,7 +171,19 @@ my $plugins = {
     'hostingde' => {},
     'infoblox' => {},
     'internetbs' => {},
-    'inwx' => {},
+    'inwx' => {
+       name => 'INWX',
+       fields => {
+           'INWX_User' => {
+               description => 'The INWX username',
+               type => 'string',
+           },
+           'INWX_Password' => {
+               description => 'The INWX password',
+               type => 'string',
+           },
+       },
+    },
     'ispconfig' => {},
     'jd' => {},
     'kas' => {},
@@ -340,10 +361,7 @@ sub setup {
     my $domain = $proxmox_acme_command->($self, $acme, $auth, $data, 'setup');
     print "Add TXT record: _acme-challenge.$domain\n";
 
-    # FIXME: probe ourself for propagation of TXT record, while not 100%
-    # failsafe it's good enough of a heuristic to do away with fixed sleep
-    # intervalls - original acme.sh employs that heuristic too.
-    my $delay = $data->{'validation-delay'} // 30;
+    my $delay = $data->{plugin}->{'validation-delay'} // 30;
     if ($delay > 0) {
        print "Sleeping $delay seconds to wait for TXT record propagation\n";
        sleep($delay); # don't care for EINTR