Skip to content

Commit 5b15249

Browse files
authored
Merge pull request #1042 from hepelayo/duckdnsCertbotPlugin
Add DuckDNS certbot plugin
2 parents 602fce1 + 91044e7 commit 5b15249

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

backend/internal/certificate.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ const internalCertificate = {
808808
const prepare_cmd = 'pip3 install ' + dns_plugin.package_name + '==' + dns_plugin.package_version + ' ' + dns_plugin.dependencies;
809809

810810
// Whether the plugin has a --<name>-credentials argument
811-
const has_config_arg = certificate.meta.dns_provider !== 'route53';
811+
const has_config_arg = certificate.meta.dns_provider !== 'route53' && certificate.meta.dns_provider !== 'duckdns';
812812

813813
let main_cmd =
814814
certbot_command + ' certonly --non-interactive ' +
@@ -834,6 +834,10 @@ const internalCertificate = {
834834
main_cmd = 'AWS_CONFIG_FILE=\'' + credentials_loc + '\' ' + main_cmd;
835835
}
836836

837+
if (certificate.meta.dns_provider === 'duckdns') {
838+
main_cmd = main_cmd + ' --' + dns_plugin.full_plugin_name + '-token ' + certificate.meta.dns_provider_credentials;
839+
}
840+
837841
if (debug_mode) {
838842
logger.info('Command:', `${credentials_cmd} && ${prepare_cmd} && ${main_cmd}`);
839843
}

global/certbot-dns-plugins.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,4 +322,13 @@ certbot_dns_transip:dns_transip_key_file = /etc/letsencrypt/transip-rsa.key`,
322322
certbot_dns_acmedns:dns_acmedns_registration_file = /data/acme-registration.json`,
323323
full_plugin_name: 'certbot-dns-acmedns:dns-acmedns',
324324
},
325+
//####################################################//
326+
duckdns: {
327+
display_name: 'DuckDNS',
328+
package_name: 'certbot-dns-duckdns',
329+
package_version: '0.5',
330+
dependencies: '',
331+
credentials: '<DUCKDNS_TOKEN>',
332+
full_plugin_name: 'certbot-dns-duckdns:dns-duckdns',
333+
},
325334
};

0 commit comments

Comments
 (0)