From 36280e1624f3a71bb7e3f74710b0a030839edbef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 7 Aug 2023 00:26:49 +0300 Subject: [PATCH] wip playing with acme-challenge --- data.nix | 3 +-- hosts/vno1-oh2/configuration.nix | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/data.nix b/data.nix index 7b4819b..5260cfc 100644 --- a/data.nix +++ b/data.nix @@ -81,8 +81,7 @@ rec { hel1-a A ${hel1a} vno1 A ${vno1} grafana A ${hosts."vno1-oh2.servers.jakst".jakstIP} - _acme-challenge.grafana CNAME _acme.grafana.jakstys.lt. - _acme.grafana A ${vno1} + _acme-challenge.grafana NS _acme.grafana.jakstys.lt. @ MX 10 aspmx.l.google.com. @ MX 20 alt1.aspmx.l.google.com. @ MX 20 alt2.aspmx.l.google.com. diff --git a/hosts/vno1-oh2/configuration.nix b/hosts/vno1-oh2/configuration.nix index ab329cd..b95b86e 100644 --- a/hosts/vno1-oh2/configuration.nix +++ b/hosts/vno1-oh2/configuration.nix @@ -175,6 +175,12 @@ interfaces = ["0.0.0.0" "::"]; zones = { "jakstys.lt.".data = myData.jakstysLTZone; + "_acme-challenge.grafana.jakstys.lt".data = '' + $ORIGIN _acme-challenge.grafana.jakstys.lt. + $TTL 60 + @ SOA _acme-challenge.grafana.jakstys.lt. motiejus.jakstys.lt. (2023080700 600 600 600 600) + @ TXT foo1 + ''; }; }; };