Skip to content

Commit

Permalink
Change DNS records to new server
Browse files Browse the repository at this point in the history
  • Loading branch information
nzbr committed Aug 1, 2023
1 parent 312507c commit 8e137c0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
16 changes: 12 additions & 4 deletions src/desec/servers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 8e137c0

Please sign in to comment.