Skip to content

Commit

Permalink
Get rid of Gandi, refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Hutter <[email protected]>
  • Loading branch information
mhutter committed Jan 9, 2024
1 parent 00df6a6 commit ebd2fb6
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 18 deletions.
4 changes: 0 additions & 4 deletions creds.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,5 @@
"cloudflare": {
"TYPE": "CLOUDFLAREAPI",
"apitoken": "$CLOUDFLARE_APITOKEN"
},
"gandi": {
"TYPE": "GANDI_V5",
"apikey": "$GANDI_APIKEY"
}
}
4 changes: 1 addition & 3 deletions dnsconfig.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
// Providers
var REG_GANDI = NewRegistrar('gandi');
var CLOUDFLARE = NewDnsProvider('cloudflare', { 'manage_redirects': true });

var REG_NONE = NewRegistrar('none');
var DNS_CF = NewDnsProvider('cloudflare', {'manage_redirects': true});
DEFAULTS(
DnsProvider(DNS_CF),
CF_PROXY_DEFAULT_OFF
);

Expand Down
2 changes: 1 addition & 1 deletion zones/hutter.io.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
D('hutter.io', REG_GANDI, DnsProvider(CLOUDFLARE),
D('hutter.io', REG_NONE,
ALIAS('@', 'mhu-dev.pages.dev.', CF_PROXY_ON),
CNAME('www', '@', CF_PROXY_ON),

Expand Down
2 changes: 1 addition & 1 deletion zones/izibizi.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
D('izibizi.ch', REG_GANDI, DnsProvider(CLOUDFLARE),
D('izibizi.ch', REG_NONE,
ALIAS('@', 'web.jimdosite.com.', CF_PROXY_ON),
CNAME('www', 'web.jimdosite.com.'),

Expand Down
2 changes: 1 addition & 1 deletion zones/mhnet.app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
D('mhnet.app', REG_NONE, DnsProvider(DNS_CF),
D('mhnet.app', REG_NONE,
A('*', RHEA_A),
AAAA('*', RHEA_AAAA),

Expand Down
6 changes: 3 additions & 3 deletions zones/mhnet.dev.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
D('mhnet.dev', REG_GANDI, DnsProvider(CLOUDFLARE),
D('mhnet.dev', REG_NONE,
// K3s cluster
A('*', '142.132.241.164', CF_PROXY_OFF),
AAAA('*', '2a01:4f8:c01e:373::1', CF_PROXY_OFF),
A('*', '142.132.241.164'),
AAAA('*', '2a01:4f8:c01e:373::1'),

// Rhea
A('rhea', RHEA_A),
Expand Down
6 changes: 3 additions & 3 deletions zones/mhu.dev.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
D('mhu.dev', REG_GANDI, DnsProvider(CLOUDFLARE),
D('mhu.dev', REG_NONE,
ALIAS('@', 'mhu-dev.pages.dev.', CF_PROXY_ON),
CNAME('www', '@', CF_PROXY_ON),

// K3s cluster
A('*', '142.132.241.164', CF_PROXY_OFF),
AAAA('*', '2a01:4f8:c01e:373::1', CF_PROXY_OFF),
A('*', '142.132.241.164'),
AAAA('*', '2a01:4f8:c01e:373::1'),


// Verifications
Expand Down
2 changes: 1 addition & 1 deletion zones/mhutter.net.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
D('mhutter.net', REG_GANDI, DnsProvider(CLOUDFLARE),
D('mhutter.net', REG_NONE,
ALIAS('@', 'mhu-dev.pages.dev.', CF_PROXY_ON),
CNAME('www', '@', CF_PROXY_ON),

Expand Down
2 changes: 1 addition & 1 deletion zones/the-voice.cc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
D('the-voice.cc', REG_GANDI, DnsProvider(CLOUDFLARE),
D('the-voice.cc', REG_NONE,
ALIAS('@', 'the-voice.pages.dev.', CF_PROXY_ON),
CNAME('www', '@', CF_PROXY_ON),

Expand Down

0 comments on commit ebd2fb6

Please sign in to comment.