]> 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 f0590de0e4498058dc48c744bf47add9b0b64304..402a501dc2a37fda06a13b89786633e5b60d65fb 100644 (file)
@@ -171,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' => {},
@@ -349,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