X-Git-Url: https://git.proxmox.com/?p=proxmox-acme.git;a=blobdiff_plain;f=src%2FPVE%2FACME%2FDNSChallenge.pm;h=402a501dc2a37fda06a13b89786633e5b60d65fb;hp=3777a14916d7733b9eb00679b3765946533c0771;hb=1192b595869adcf12eda5dc0cf7db950625a22b6;hpb=ec59606a39e7d436118999cc7820ceb124a6d4b0 diff --git a/src/PVE/ACME/DNSChallenge.pm b/src/PVE/ACME/DNSChallenge.pm index 3777a14..402a501 100644 --- a/src/PVE/ACME/DNSChallenge.pm +++ b/src/PVE/ACME/DNSChallenge.pm @@ -125,7 +125,15 @@ my $plugins = { 'ddnss' => {}, 'desec' => {}, 'df' => {}, - 'dgon' => {}, + 'dgon' => { + name => 'DigitalOcean DNS', + fields => { + 'DO_API_KEY' => { + description => 'The DigitalOcean API Key', + type => 'string', + }, + }, + }, 'dnsimple' => {}, 'do' => {}, 'doapi' => {}, @@ -163,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' => {}, @@ -341,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