]> git.openstreetmap.org Git - dns.git/commitdiff
Setup openstreetmap.mg to point to Github Pages
authorGrant Slater <github@firefishy.com>
Fri, 8 Mar 2024 13:16:57 +0000 (13:16 +0000)
committerGrant Slater <github@firefishy.com>
Fri, 8 Mar 2024 13:16:57 +0000 (13:16 +0000)
dnsconfig.js
src/openstreetmap-mg.js [new file with mode: 0644]

index f2a0e640bab7b759e3ffe2d38eee7e2cce1d3eb7..88b42189972572f96ffaa67f5cdafbbe8cf820e1 100644 (file)
@@ -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 (file)
index 0000000..80ae23c
--- /dev/null
@@ -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