From e889c9fa9a00706e45a0b2cf7d5d33c017215d61 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 22 Jun 2024 18:40:10 +0200 Subject: switch website hosting back to fly --- dnsconfig.js | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/dnsconfig.js b/dnsconfig.js index d2578e4..8a3d3e1 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -17,25 +17,12 @@ function https(record) { .join(' ') } -// Fast, but no IPv6 support in 2024 -var vercelIPv4A = '76.76.21.241' -var vercelIPv4B = '76.76.21.98' - -// A bit slower but at least IPv6 is supported -var netlifyIPv4A = '75.2.60.5' -var netlifyIPv4B = '99.83.231.61' -var netlifyIPv6A = '2a05:d014:275:cb01::c8' -var netlifyIPv6B = '2a05:d014:275:cb00::c8' - /** * @param {string} name */ -function vercelv4Netlifyv6(name) { +function fly(name) { return [ - A(name, vercelIPv4A), - A(name, vercelIPv4B), - AAAA(name, netlifyIPv6A), - AAAA(name, netlifyIPv6B), + ALIAS(name, 'alanpearce-eu.fly.dev.'), // neither vercel nor netlify support HTTP/3 yet HTTPS(name, 1, '.', https({ alpn: ['h2'] })), ] @@ -85,7 +72,7 @@ var acmeLetsEncrypt = [ IGNORE('_acme-challenge.**', 'TXT'), ] -var websiteHosting = [vercelv4Netlifyv6('@'), vercelv4Netlifyv6('www')] +var websiteHosting = [fly('@'), fly('www')] // Providers: -- cgit 1.4.1