// tomtervel.no, all of it, as DNSControl applies it to Cloudflare. // // cd dns // CLOUDFLARE_API_TOKEN=... dnscontrol preview # what would change // CLOUDFLARE_API_TOKEN=... dnscontrol push # change it // // This file is the whole zone: a record that is in Cloudflare and not // here is deleted on push. `preview` lists every deletion first, so read // it before every push. See dns/README.md. var REG_NONE = NewRegistrar("none"); var DSP_CLOUDFLARE = NewDnsProvider("cloudflare"); // kasse: Klingenberg Bygg's host, where the vel's stack runs (portal, // Rauthy, chat, gdo) behind kasse's own Caddy, and whose postfix sends // the vel's mail. Move the vel to a host of its own: change this. var KASSE = "195.159.177.252"; // kasse's rspamd signs mail From @tomtervel.no with this key (selector // `kasse`). It is the public half, printed by kasse-dkim-tomtervel.sh; // the private half stays on kasse. Empty: no record yet, and the site // must keep sending from klingenbergbygg.no (site.yaml `mail.from`). var KASSE_DKIM = "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnFk6GpG/SKmBsed+iiuDQZmyZB/SyUqAqMsEDhZTzMSy8m4hW1TPhIUwZmq4c9RTyX8OPM8FhQMiMLjpAxWHQeOMV6AesbpCU+bdTZBddJyLFF5D7o5UKIEUuByAuZbBAvX0R/irQAtNbgeYiDpRwtg60dpoR6HfhA71xBKu8k4C0N4fMQk+SZundzCrOPVGQKSZUVcl5cH92V9SiRlj3y9SFlQIbqaJLA9F3zF4O4yJZ378ov93PFmGyHyG6OhA1KS6aFHxUbxflolKffXXbSjQUZvOhw/+zXEd0agCOmZVYOoeQcZdeHa59qdA7MV2P1/lfbDKHnuTVNiq8zI5kwIDAQAB"; D("tomtervel.no", REG_NONE, DnsProvider(DSP_CLOUDFLARE), DefaultTTL(1), // Cloudflare's "auto" // The site, the login and the chat. Not proxied: kasse's Caddy gets // the certificates itself, and the login's cookies and the chat's // websockets reach it as they are. A("@", KASSE, CF_PROXY_OFF), CNAME("www", "tomtervel.no.", CF_PROXY_OFF), A("konto", KASSE, CF_PROXY_OFF), // The money service (kron): pay links and Vipps's webhooks. A("betaling", KASSE, CF_PROXY_OFF), A("samtaler", KASSE, CF_PROXY_OFF), // The old names, kept so links from before still land: Caddy sends // id on to konto (the login) and chat on to samtaler. A("id", KASSE, CF_PROXY_OFF), A("chat", KASSE, CF_PROXY_OFF), // The content repo's previews: the list of them, and one name per // branch before it is merged (.forhandsvisning). Caddy gets a // certificate for a branch's name the first time it is asked for, and // only for a branch that has a preview (host-caddy/tomtervel.no). A("forhandsvisning", KASSE, CF_PROXY_OFF), A("*.forhandsvisning", KASSE, CF_PROXY_OFF), // The old website, kept for now so the move can be undone: what the // apex and web. pointed at before (Netlify, through Cloudflare). The // old host must also know the name (a domain alias there). Drop it // when nobody needs the old site. A("gammel", "104.198.14.52", CF_PROXY_ON), // The board's inbox, post@tomtervel.no, is at Zoho. MX("@", 10, "mx.zoho.eu."), MX("@", 20, "mx2.zoho.eu."), MX("@", 50, "mx3.zoho.eu."), TXT("@", "zoho-verification=zb14986736.zmverify.zoho.eu"), // Who may send as @tomtervel.no: Zoho, for the board's own mail, and // kasse, for the site's. One SPF record only; two break both. TXT("@", "v=spf1 include:zoho.eu ip4:" + KASSE + " ~all"), // Reports only, to start. Tighten to p=quarantine once the reports // show both Zoho and kasse passing. TXT("_dmarc", "v=DMARC1; p=none; rua=mailto:post@tomtervel.no"), // Zoho's DKIM key, as it stands today: on the zone's apex, where no // receiver looks for it, so mail from Zoho is unsigned in effect. Zoho // Mail's admin (Domains -> Email configuration -> DKIM) names its // selector; move it to TXT("._domainkey", ...) and drop it here. TXT("@", "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCA2wb0ETspWV0uV8xjxBb4s0e+Ybe7Uh1CJgboXvZmBdZyUEfduuUXwBpJD+XuIXoaE16zGzeheVxwzMy4tvLa/FQ9XDZVQOSgUUoSyta1MHi5pPjgpmhqngEQczCrBzBuK/ew+biIdwNhyEHB738mxHTDTyY013Pob1cU9EFB+wIDAQAB"), // Left from before; whoever set it up may still use Search Console. TXT("@", "google-site-verification=ElKwNmdiHDNHHrK07rI9zWAIO979bkxbPOp1rWcG8ZY"), KASSE_DKIM ? TXT("kasse._domainkey", KASSE_DKIM) : [] );