From 8e137c098fc3044da92b9646052d6e9431a5c68b Mon Sep 17 00:00:00 2001 From: nzbr Date: Tue, 1 Aug 2023 05:00:32 +0200 Subject: [PATCH] Change DNS records to new server --- .idea/misc.xml | 1 - package.json | 4 ++++ src/desec/servers.ts | 16 ++++++++++++---- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 639900d..6e86672 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,3 @@ - diff --git a/package.json b/package.json index 3357c31..d226848 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,10 @@ { "name": "infrastructure", "main": "src/index.ts", + "scripts": { + "preview": "pulumi preview", + "up": "pulumi up" + }, "devDependencies": { "@types/node": "^14", "prettier": "^2.7.1", diff --git a/src/desec/servers.ts b/src/desec/servers.ts index 7a85f27..060443e 100644 --- a/src/desec/servers.ts +++ b/src/desec/servers.ts @@ -7,11 +7,19 @@ export const all: { [key: string]: { ip4: string; ip6: string } } = { ip4: '45.9.63.165', ip6: '2a03:4000:45:510::', }, + firestorm: { + ip4: '46.38.250.20', + ip6: '2a03:4000:b:120::1', + } }; -export const ip4 = Object.keys(all) - .map((k) => all[k].ip4) +export const main: typeof all = { + firestorm: all.firestorm, +} + +export const ip4 = Object.keys(main) + .map((k) => main[k].ip4) .filter((x?: string) => !!x); -export const ip6 = Object.keys(all) - .map((k) => all[k].ip6) +export const ip6 = Object.keys(main) + .map((k) => main[k].ip6) .filter((x?: string) => !!x);