From 80846befaf629e0168d01a5a4d04918be9ee7b3a Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Wed, 7 Sep 2022 18:26:49 +0100 Subject: [PATCH] Add ideditor.com domain --- dnsconfig.js | 4 ++++ src/ideditor.js | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 src/ideditor.js diff --git a/dnsconfig.js b/dnsconfig.js index 2be2a47..9745f9a 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -121,3 +121,7 @@ var OSM2PGSQL = loadTemplate("osm2pgsql"); OSM2PGSQL("osm2pgsql.org", REG_GANDI); OSM2PGSQL("osm2pgsql.com", REG_GANDI); + +var IDEDITOR = loadTemplate("ideditor"); + +IDEDITOR("ideditor.com", REG_GANDI); \ No newline at end of file diff --git a/src/ideditor.js b/src/ideditor.js new file mode 100644 index 0000000..3d2fd64 --- /dev/null +++ b/src/ideditor.js @@ -0,0 +1,34 @@ +D(DOMAIN, REGISTRAR, DnsProvider(PROVIDER), + + // Publish CAA records indicating that only letsencrypt should issue certificates + + CAA_BUILDER({ + label: "@", + iodef: "mailto:hostmaster@openstreetmap.org", + issue: [ + "letsencrypt.org", + ], + issuewild: [ + "letsencrypt.org", + ], + }), + + // Delegate SPF policy to the main domain + + SPF_BUILDER({ + label: "@", + parts: [ + "v=spf1", + "include:openstreetmap.org", // main openstreetmap.org spf record + "-all" + ] + }), + + // Main web server and it's aliases + + A("@", "192.30.252.153"), + A("@", "192.30.252.154"), + A("www", "192.30.252.153"), + A("www", "192.30.252.154") + +); \ No newline at end of file -- 2.39.5