mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
Add support for ACME DNS
This commit is contained in:
+26
@@ -750,4 +750,30 @@
|
||||
<label>API Key</label>
|
||||
<type>text</type>
|
||||
</field>
|
||||
<field>
|
||||
<label>ACME DNS</label>
|
||||
<type>header</type>
|
||||
<style>table_dns table_dns_acmedns</style>
|
||||
</field>
|
||||
<field>
|
||||
<id>validation.dns_acmedns_user</id>
|
||||
<label>User</label>
|
||||
<type>text</type>
|
||||
</field>
|
||||
<field>
|
||||
<id>validation.dns_acmedns_password</id>
|
||||
<label>Password</label>
|
||||
<type>password</type>
|
||||
</field>
|
||||
<field>
|
||||
<id>validation.dns_acmedns_subdomain</id>
|
||||
<label>Subdomain</label>
|
||||
<type>text</type>
|
||||
</field>
|
||||
<field>
|
||||
<id>validation.dns_acmedns_updateurl</id>
|
||||
<label>Update URL</label>
|
||||
<type>text</type>
|
||||
<help>Specify the custom ACME DNS Update URL, i.e. https://auth.acme-dns.io/update (optional)</help>
|
||||
</field>
|
||||
</form>
|
||||
|
||||
+14
-1
@@ -383,6 +383,7 @@
|
||||
<dns_yandex>Yandex PDD API</dns_yandex>
|
||||
<dns_zilore>Zilore DNS API</dns_zilore>
|
||||
<dns_zonomi>zonomi.com domain API</dns_zonomi>
|
||||
<dns_acmedns>ACME DNS API</dns_acmedns>
|
||||
</OptionValues>
|
||||
</dns_service>
|
||||
<dns_sleep type="IntegerField">
|
||||
@@ -654,7 +655,19 @@
|
||||
</dns_zilore_key>
|
||||
<dns_zm_key type="TextField">
|
||||
<Required>N</Required>
|
||||
</dns_zm_key>
|
||||
</dns_zm_key>
|
||||
<dns_acmedns_user type="TextField">
|
||||
<Required>N</Required>
|
||||
</dns_acmedns_user>
|
||||
<dns_acmedns_password type="TextField">
|
||||
<Required>N</Required>
|
||||
</dns_acmedns_password>
|
||||
<dns_acmedns_subdomain type="TextField">
|
||||
<Required>N</Required>
|
||||
</dns_acmedns_subdomain>
|
||||
<dns_acmedns_updateurl type="TextField">
|
||||
<Required>N</Required>
|
||||
</dns_acmedns_updateurl>
|
||||
</validation>
|
||||
</validations>
|
||||
<actions>
|
||||
|
||||
@@ -776,7 +776,13 @@ function run_acme_validation($certObj, $valObj, $acctObj)
|
||||
break;
|
||||
case 'dns_zonomi':
|
||||
$proc_env['ZM_Key'] = (string)$valObj->dns_zm_key;
|
||||
break;
|
||||
break;
|
||||
case 'dns_acmedns':
|
||||
$proc_env['ACMEDNS_USERNAME'] = (string)$valObj->dns_acmedns_user;
|
||||
$proc_env['ACMEDNS_PASSWORD'] = (string)$valObj->dns_acmedns_password;
|
||||
$proc_env['ACMEDNS_SUBDOMAIN'] = (string)$valObj->dns_acmedns_subdomain;
|
||||
$proc_env['ACMEDNS_UPDATE_URL'] = (string)$valObj->dns_acmedns_updateurl;
|
||||
break;
|
||||
default:
|
||||
log_error("AcmeClient: invalid DNS-01 service specified: " . (string)$valObj->dns_service);
|
||||
return(1);
|
||||
|
||||
Reference in New Issue
Block a user