1 var REG_NONE = NewRegistrar("none", "NONE");
2 var REG_GANDI = NewRegistrar("gandi_v5", "GANDI_V5");
3 var PROVIDER = NewDnsProvider("cloudflare", "CLOUDFLAREAPI");
9 var QUALIFY = function (name) {
10 return name + "." + DOMAIN + ".";
13 function loadTemplate(template) {
14 return function (domain, registrar) {
16 REGISTRAR = registrar;
19 for (var i = 2; i < arguments.length; i++) {
20 DYNAMIC_RECORDS = DYNAMIC_RECORDS.concat(arguments[i]);
23 require("src/" + template + ".js");
27 require("src/hosts.js");
29 var OPENSTREETMAP = loadTemplate("openstreetmap");
31 require("include/sshfp.js");
32 require("include/tile.js");
33 require("include/render.js");
34 require("include/nominatim.js");
36 OPENSTREETMAP("openstreetmap.org", REG_GANDI, SSHFP_RECORDS, TILE_RECORDS, RENDER_RECORDS, NOMINATIM_RECORDS);
37 OPENSTREETMAP("openstreetmap.com", REG_GANDI);
38 OPENSTREETMAP("openstreetmap.net", REG_GANDI);
39 OPENSTREETMAP("openstreetmap.ca", REG_GANDI);
40 OPENSTREETMAP("openstreetmap.eu", REG_NONE);
41 OPENSTREETMAP("openstreetmap.pro", REG_GANDI);
42 OPENSTREETMAP("openstreetmap.gay", REG_GANDI);
43 OPENSTREETMAP("openstreetmaps.org", REG_GANDI);
44 OPENSTREETMAP("osm.org", REG_GANDI);
45 OPENSTREETMAP("openmaps.org", REG_GANDI);
46 OPENSTREETMAP("openstreetmap.io", REG_GANDI);
47 OPENSTREETMAP("osm.io", REG_GANDI);
48 OPENSTREETMAP("openstreetmap.li", REG_GANDI);
49 OPENSTREETMAP("openworldmap.org", REG_GANDI);
50 OPENSTREETMAP("freeosm.org", REG_GANDI);
51 OPENSTREETMAP("open-maps.org", REG_GANDI);
52 OPENSTREETMAP("open-maps.com", REG_GANDI);
53 OPENSTREETMAP("osmbugs.org", REG_GANDI);
54 OPENSTREETMAP("freethepostcode.org", REG_GANDI);
55 OPENSTREETMAP("openstreetmap.ai", REG_GANDI);
56 OPENSTREETMAP("openstreetmap.am", REG_GANDI);
57 OPENSTREETMAP("openstreetmap.fi", REG_GANDI);
58 OPENSTREETMAP("openstreetmap.gr", REG_GANDI);
59 OPENSTREETMAP("openstreetmap.me", REG_GANDI);
60 OPENSTREETMAP("openstreetmap.mx", REG_GANDI);
61 OPENSTREETMAP("openstreetmap.nz", REG_GANDI);
62 OPENSTREETMAP("openstreetmap.pe", REG_GANDI);
63 OPENSTREETMAP("openstreetmap.ph", REG_GANDI);
64 OPENSTREETMAP("openstreetmap.sg", REG_GANDI);
65 OPENSTREETMAP("openstreetmap.tv", REG_GANDI);
66 OPENSTREETMAP("openstreetmap.wales", REG_GANDI);
67 OPENSTREETMAP("openstreetmapdata.org", REG_GANDI);
68 OPENSTREETMAP("openstreetmap.al", REG_NONE);
70 var OSM_LI = loadTemplate("osm-li");
72 OSM_LI("osm.li", REG_GANDI);
74 var OPENSTREETMAP_UK = loadTemplate("openstreetmap-uk");
76 OPENSTREETMAP_UK("openstreetmap.uk", REG_GANDI);
77 OPENSTREETMAP_UK("openstreetmap.org.uk", REG_GANDI);
78 OPENSTREETMAP_UK("openstreetmap.co.uk", REG_GANDI);
80 var OPENSTREETMAP_ZA = loadTemplate("openstreetmap-za");
82 OPENSTREETMAP_ZA("openstreetmap.org.za", REG_NONE);
83 OPENSTREETMAP_ZA("osm.org.za", REG_NONE);
85 var OSMFOUNDATION = loadTemplate("osmfoundation");
87 OSMFOUNDATION("osmfoundation.org", REG_GANDI);
89 var STATEOFTHEMAP = loadTemplate("stateofthemap");
91 STATEOFTHEMAP("stateofthemap.org", REG_GANDI);
92 STATEOFTHEMAP("stateofthemap.com", REG_GANDI);
93 STATEOFTHEMAP("sotm.org", REG_GANDI);
96 // Domain Owner Issue / Registration Issues - Disable for the moment. 31 May 2021
97 // var STATEOFTHEMAP_EU = loadTemplate("stateofthemap-eu");
98 // STATEOFTHEMAP_EU("stateofthemap.eu", REG_GANDI);
100 var OPENGEODATA = loadTemplate("opengeodata");
101 OPENGEODATA("opengeodata.org", REG_GANDI);
103 var SWITCH2OSM = loadTemplate("switch2osm");
105 SWITCH2OSM("switch2osm.org", REG_GANDI);
106 SWITCH2OSM("switch2osm.com", REG_GANDI);
108 var OSM2PGSQL = loadTemplate("osm2pgsql");
110 OSM2PGSQL("osm2pgsql.org", REG_GANDI);
111 OSM2PGSQL("osm2pgsql.com", REG_GANDI);