From e80b3455187e180528359ecfc31a04f39d468738 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Fri, 8 Mar 2024 13:16:57 +0000 Subject: [PATCH] Setup openstreetmap.mg to point to Github Pages --- dnsconfig.js | 5 ++++- src/openstreetmap-mg.js | 29 +++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 src/openstreetmap-mg.js diff --git a/dnsconfig.js b/dnsconfig.js index f2a0e64..88b4218 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -68,7 +68,6 @@ OPENSTREETMAP("openstreetmap.am", REG_GANDI); OPENSTREETMAP("openstreetmap.fi", REG_GANDI); OPENSTREETMAP("openstreetmap.gr", REG_GANDI); OPENSTREETMAP("openstreetmap.me", REG_GANDI); -OPENSTREETMAP("openstreetmap.mg", REG_GANDI); // State of the Map Madagascar OPENSTREETMAP("openstreetmap.mx", REG_GANDI); OPENSTREETMAP("openstreetmap.nz", REG_GANDI); OPENSTREETMAP("openstreetmap.pe", REG_GANDI); @@ -121,6 +120,10 @@ STATEOFTHEMAP("sotm.org", REG_GANDI); var STATEOFTHEMAP_EU = loadTemplate("stateofthemap-eu"); STATEOFTHEMAP_EU("stateofthemap.eu", REG_NONE); +// State of the Map Madagascar +var OPENSTREETMAP_MG = loadTemplate("openstreetmap-mg"); +OPENSTREETMAP_MG("openstreetmap.mg", REG_GANDI); + var OPENGEODATA = loadTemplate("opengeodata"); OPENGEODATA("opengeodata.org", REG_GANDI); diff --git a/src/openstreetmap-mg.js b/src/openstreetmap-mg.js new file mode 100644 index 0000000..80ae23c --- /dev/null +++ b/src/openstreetmap-mg.js @@ -0,0 +1,29 @@ +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", + ], + }), + + // Block email delivery + + TXT("_dmarc", "v=DMARC1; p=reject; sp=reject; adkim=s; aspf=s;"), + TXT("*._domainkey", "v=DKIM1; p="), + TXT("@", "v=spf1 -all"), + + // Site hosted on github pages + + ALIAS("@", "openstreetmap-madagascar.github.io."), + CNAME("www", "openstreetmap-madagascar.github.io."), + + CNAME("sotm2024", "openstreetmap-madagascar.github.io.") + +); \ No newline at end of file -- 2.39.5