X-Git-Url: https://git.openstreetmap.org/dns.git/blobdiff_plain/c09a3c8b63b507baa95acae7f9014b45ef76ae00..07871395ef7dfb7cce79c1b97457db4c68c59b7d:/src/switch2osm.js diff --git a/src/switch2osm.js b/src/switch2osm.js index 71cae23..70e2775 100644 --- a/src/switch2osm.js +++ b/src/switch2osm.js @@ -2,9 +2,29 @@ D(DOMAIN, REGISTRAR, DnsProvider(PROVIDER), // Publish CAA records indicating that only letsencrypt should issue certificates - CAA("@", "issue", "letsencrypt.org", CF_TTL_ANY), - CAA("@", "issuewild", "letsencrypt.org", CF_TTL_ANY), - CAA("@", "iodef", "mailto:hostmaster@openstreetmap.org"), + CAA_BUILDER({ + label: "@", + ttl: "1h", + iodef: "mailto:hostmaster@openstreetmap.org", + issue: [ + "letsencrypt.org", + ], + issuewild: [ + "letsencrypt.org", + ], + }), + + // Delegate SPF policy to the main domain + + SPF_BUILDER({ + label: "@", + ttl: "1h", + parts: [ + "v=spf1", + "include:openstreetmap.org", // main openstreetmap.org spf record + "-all" + ] + }), // Main web server and it's aliases