all repos — dns @ 3c5d50deb22aff581b684233a3f4e15ac3429231

DNS records for my domains, managed via dnscontrol

remove script for HTTPS records

Alan Pearce
commit

3c5d50deb22aff581b684233a3f4e15ac3429231

parent

02b701c2421c550a2d6d3f26e15bc39102b320d3

3 files changed, 0 insertions(+), 37 deletions(-)

changed files
D add_https.sh
@@ -1,35 +0,0 @@
-#!/usr/bin/env bash - -add_https() { - zone="$1" - domain="$2" - alpn="${3:-h2}" - echo "zone: ${zone} adding HTTPS record for ${domain} with alpn=${alpn}" - xh --print=b PATCH $POWERDNS_API_URL/api/v1/servers/localhost/zones/${zone}. \ - X-API-KEY:$POWERDNS_API_KEY <<JSON -{ - "rrsets": [ - { - "name": "${domain}.", - "type": "HTTPS", - "ttl": 86400, - "changetype": "REPLACE", - "records": [ - { - "content": "1 . alpn=${alpn}" - } - ] - } - ] -} -JSON - -} - -for domain in alanpearce.{eu,uk} alin.ovh; do - add_https $domain $domain - add_https $domain www.$domain -done - -add_https alanpearce.eu linde.alanpearce.eu "h3,h2" -add_https alin.ovh linde.alin.ovh "h3,h2"
M justfilejustfile
@@ -8,7 +8,6 @@ build: preview
push: dnscontrol push - ./add_https.sh run: push
M shell.nixshell.nix
@@ -3,7 +3,6 @@ }:
pkgs.mkShell { packages = with pkgs; [ dnscontrol - xh nodePackages.prettier ]; }