1 var REG_NONE = NewRegistrar("none", "NONE");
2 var REG_GANDI = NewRegistrar("gandi_v5", "GANDI_V5");
3 var PROVIDER = NewDnsProvider("cloudflare", "CLOUDFLAREAPI");
5 var CF_TTL_ANY = TTL(1);
7 DEFAULTS(DefaultTTL("24h"));
13 var QUALIFY = function (name) {
14 return name + "." + DOMAIN + ".";
17 function loadTemplate(template) {
18 return function (domain, registrar) {
20 REGISTRAR = registrar;
23 for (var i = 2; i < arguments.length; i++) {
24 DYNAMIC_RECORDS = DYNAMIC_RECORDS.concat(arguments[i]);
27 require("src/" + template + ".js");
31 require("src/hosts.js");
33 var OPENSTREETMAP = loadTemplate("openstreetmap");
35 require("include/sshfp.js");
36 require("include/tile.js");
37 require("include/render.js");
38 require("include/nominatim.js");
40 OPENSTREETMAP("openstreetmap.org", REG_GANDI, SSHFP_RECORDS, TILE_RECORDS, RENDER_RECORDS, NOMINATIM_RECORDS);
41 OPENSTREETMAP("openstreetmap.com", REG_GANDI);
42 OPENSTREETMAP("openstreetmap.net", REG_GANDI);
43 OPENSTREETMAP("openstreetmap.ca", REG_GANDI);
44 OPENSTREETMAP("openstreetmap.eu", REG_NONE);
45 OPENSTREETMAP("openstreetmap.pro", REG_GANDI);
46 OPENSTREETMAP("openstreetmap.gay", REG_GANDI);
47 OPENSTREETMAP("openstreetmaps.org", REG_GANDI);
48 OPENSTREETMAP("osm.org", REG_GANDI);
49 OPENSTREETMAP("openmaps.org", REG_GANDI);
50 OPENSTREETMAP("openstreetmap.io", REG_GANDI);
51 OPENSTREETMAP("osm.io", REG_GANDI);
52 OPENSTREETMAP("openstreetmap.li", REG_GANDI);
53 OPENSTREETMAP("openworldmap.org", REG_GANDI);
54 OPENSTREETMAP("freeosm.org", REG_GANDI);
55 OPENSTREETMAP("open-maps.org", REG_GANDI);
56 OPENSTREETMAP("open-maps.com", REG_GANDI);
57 OPENSTREETMAP("osmbugs.org", REG_GANDI);
59 var OSM_LI = loadTemplate("osm-li");
61 OSM_LI("osm.li", REG_GANDI);
63 var OPENSTREETMAP_UK = loadTemplate("openstreetmap-uk");
65 OPENSTREETMAP_UK("openstreetmap.uk", REG_GANDI);
66 OPENSTREETMAP_UK("openstreetmap.org.uk", REG_GANDI);
67 OPENSTREETMAP_UK("openstreetmap.co.uk", REG_GANDI);
69 var OPENSTREETMAP_ZA = loadTemplate("openstreetmap-za");
71 OPENSTREETMAP_ZA("openstreetmap.org.za", REG_NONE);
72 OPENSTREETMAP_ZA("osm.org.za", REG_NONE);
74 var OSMFOUNDATION = loadTemplate("osmfoundation");
76 OSMFOUNDATION("osmfoundation.org", REG_GANDI);
78 var STATEOFTHEMAP = loadTemplate("stateofthemap");
80 STATEOFTHEMAP("stateofthemap.org", REG_GANDI);
81 STATEOFTHEMAP("stateofthemap.com", REG_GANDI);
82 STATEOFTHEMAP("sotm.org", REG_GANDI);
84 var STATEOFTHEMAP_EU = loadTemplate("stateofthemap-eu");
86 STATEOFTHEMAP_EU("stateofthemap.eu", REG_GANDI);
88 var OPENGEODATA = loadTemplate("opengeodata");
90 OPENGEODATA("opengeodata.org", REG_GANDI);
92 var SWITCH2OSM = loadTemplate("switch2osm");
94 SWITCH2OSM("switch2osm.org", REG_GANDI);
95 SWITCH2OSM("switch2osm.com", REG_GANDI);
97 var OSM2PGSQL = loadTemplate("osm2pgsql");
99 OSM2PGSQL("osm2pgsql.org", REG_GANDI);
100 OSM2PGSQL("osm2pgsql.com", REG_GANDI);