From 517e75a3a344486237b0a40ee3ffdfc0dadac2ff Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Sat, 21 Dec 2024 15:02:33 +0100 Subject: [PATCH] Add emgauwa to dnscontrol --- .gitignore | 7 ++++--- dns/functions.js | 10 ++++++++++ dnsconfig.js | 14 ++++++++++++++ services.auto.tfvars | 5 +++++ 4 files changed, 33 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 0396a5e..1338226 100644 --- a/.gitignore +++ b/.gitignore @@ -1,14 +1,15 @@ .env types-dnscontrol.d.ts +dns/dkim-ses.json +dns/emgauwa.json dns/hosts.json dns/services.json -dns/dkim-ses.json .terraform -inventory/group_vars/all/serguzim.net.yml -inventory/group_vars/all/opentofu.yml inventory/group_vars/all/all_services.yml +inventory/group_vars/all/opentofu.yml +inventory/group_vars/all/serguzim.net.yml infrastructure.svg diff --git a/dns/functions.js b/dns/functions.js index c97376e..a8efc14 100644 --- a/dns/functions.js +++ b/dns/functions.js @@ -70,3 +70,13 @@ function verify_dmarc_reports(domains) { } return result; } + +function emgauwa_records(emgauwa) { + var result = []; + for (var i = 0; i < emgauwa.length; i++) { + var e = emgauwa[i]; + result.push(A(e.subdomain, e.ip)); + result.push(acme_challenge(e.subdomain, e.acme_challenge)); + } + return result; +} diff --git a/dnsconfig.js b/dnsconfig.js index 7906882..245546b 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -7,6 +7,7 @@ var dkim = require('dns/dkim.json'); var dkim_ses = require('dns/dkim-ses.json'); var hosts = require('dns/hosts.json'); var services_json = require('dns/services.json'); +var emgauwa = require('dns/emgauwa.json'); var REG_OVH = NewRegistrar("ovh"); var DSP_OVH = NewDnsProvider("ovh"); @@ -80,6 +81,19 @@ D("serguzim.me", REG_OVH, DnsProvider(DSP_OVH), CNAME("cloud", "nx45221.your-storageshare.de.") ); + +// ___ _ __ ___ __ _ __ _ _ ___ ____ _ __ _ _ __ _ __ +// / _ \ '_ ` _ \ / _` |/ _` | | | \ \ /\ / / _` | / _` | '_ \| '_ \ +// | __/ | | | | | (_| | (_| | |_| |\ V V / (_| || (_| | |_) | |_) | +// \___|_| |_| |_|\__, |\__,_|\__,_| \_/\_/ \__,_(_)__,_| .__/| .__/ +// |___/ |_| |_| +D("emgauwa.app", REG_OVH, DnsProvider(DSP_OVH), + A("dev", "127.0.0.1"), + + all_defaults("emgauwa.app", true), + emgauwa_records(emgauwa) +); + // _ _ _ _ _ _ // _ __ ___(_) |_ __ _ _ __ | | __ _ __ _ ___ ___ _ __ __ _ _ __ (_) ___ _ __ | |__ _ _ _ __ __ _ __| | ___ diff --git a/services.auto.tfvars b/services.auto.tfvars index 63151fa..a70ee05 100644 --- a/services.auto.tfvars +++ b/services.auto.tfvars @@ -464,6 +464,11 @@ services = { domain = "msvg.cc" name = "shlink-msvg" alias = "shlink" + }, + { + domain = "emgauwa.app" + name = "shlink-emgauwa" + alias = "shlink" } ] monitoring = {