From ecea4c5169976e334dfdbe992605bd055f622917 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 10 Jul 2024 20:43:46 +0200 Subject: use acme-dns for dns-based validation --- dnsconfig.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/dnsconfig.js b/dnsconfig.js index 823828b..c50c192 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -59,11 +59,10 @@ function bulkCNAME(sources, target) { } /** - * @param {string} source * @param {string} subdomain */ -function acme(source, subdomain) { - return CNAME(source, subdomain + '.acme.alanpearce.eu.') +function acme(subdomain) { + return CNAME('_acme-challenge', subdomain + '.acme.alanpearce.eu.') } var nameserversHE = [ @@ -82,7 +81,7 @@ var acmeLetsEncrypt = [ }), ] -var websiteHosting = [fly('@'), fly('www')] +var websiteHosting = [fly('@'), fly('www'), acme('6b17e53d-6090-4820-a557-51ee3324f38c')] // Providers: @@ -192,7 +191,7 @@ D( parts: ['v=spf1', '-all'], }), - DNAME('@', 'alanpearce.eu.'), + CNAME('*', 'alanpearce.eu.'), nameserversHE ) -- cgit 1.4.1