mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
Merge pull request #1350 from devNan0/feature-add_netcup-dns_support
security/acme-client: Add Support for netcup DNS API
This commit is contained in:
+20
@@ -666,6 +666,26 @@
|
||||
<label>Key</label>
|
||||
<type>text</type>
|
||||
</field>
|
||||
<field>
|
||||
<label>netcup DNS API</label>
|
||||
<type>header</type>
|
||||
<style>table_dns table_dns_netcup</style>
|
||||
</field>
|
||||
<field>
|
||||
<id>validation.dns_netcup_cid</id>
|
||||
<label>Customer number</label>
|
||||
<type>text</type>
|
||||
</field>
|
||||
<field>
|
||||
<id>validation.dns_netcup_key</id>
|
||||
<label>API Key</label>
|
||||
<type>text</type>
|
||||
</field>
|
||||
<field>
|
||||
<id>validation.dns_netcup_pw</id>
|
||||
<label>API Password</label>
|
||||
<type>text</type>
|
||||
</field>
|
||||
<field>
|
||||
<label>NS1.com</label>
|
||||
<type>header</type>
|
||||
|
||||
@@ -378,6 +378,7 @@
|
||||
<dns_namecom>Name.com API</dns_namecom>
|
||||
<dns_namecheap>Namecheap API</dns_namecheap>
|
||||
<dns_namesilo>Namesilo.com API</dns_namesilo>
|
||||
<dns_netcup>netcup DNS API</dns_netcup>
|
||||
<dns_nsone>NS1.com API</dns_nsone>
|
||||
<dns_nsupdate>nsupdate (RFC 2136)</dns_nsupdate>
|
||||
<dns_ovh>OVH, kimsufi, soyoustart and runabove API</dns_ovh>
|
||||
@@ -624,6 +625,15 @@
|
||||
<dns_namesilo_key type="TextField">
|
||||
<Required>N</Required>
|
||||
</dns_namesilo_key>
|
||||
<dns_netcup_cid type="TextField">
|
||||
<Required>N</Required>
|
||||
</dns_netcup_cid>
|
||||
<dns_netcup_key type="TextField">
|
||||
<Required>N</Required>
|
||||
</dns_netcup_key>
|
||||
<dns_netcup_pw type="TextField">
|
||||
<Required>N</Required>
|
||||
</dns_netcup_pw>
|
||||
<dns_nsone_key type="TextField">
|
||||
<Required>N</Required>
|
||||
</dns_nsone_key>
|
||||
|
||||
@@ -811,6 +811,13 @@ function run_acme_validation($certObj, $valObj, $acctObj)
|
||||
// Namesilo applies changes to DNS records only every 15 minutes.
|
||||
$acme_hook_options[] = "--dnssleep 960";
|
||||
break;
|
||||
case 'dns_netcup':
|
||||
$proc_env['NC_CID'] = (string)$valObj->dns_netcup_cid;
|
||||
$proc_env['NC_Apikey'] = (string)$valObj->dns_netcup_key;
|
||||
$proc_env['NC_Apipw'] = (string)$valObj->dns_netcup_pw;
|
||||
// netcup applies changes to DNS records only every 10 minutes.
|
||||
$acme_hook_options[] = "--dnssleep 600";
|
||||
break;
|
||||
case 'dns_nsone':
|
||||
$proc_env['NS1_Key'] = (string)$valObj->dns_nsone_key;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user