From edc750dae7a53cda808a552bb1603b4ec2bdb036 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 12 Feb 2022 21:28:18 +0000 Subject: add sidewalk.ninja --- openbsd/frontends/etc/httpd.conf | 23 ++++++++++++++++++++++ openbsd/frontends/var/nsd:blowfish/etc/nsd.conf | 6 ++++++ .../nsd:blowfish/zones/master/sidewalk.ninja.zone | 18 +++++++++++++++++ openbsd/frontends/var/nsd:twofish/etc/nsd.conf | 5 +++++ 4 files changed, 52 insertions(+) create mode 100644 openbsd/frontends/var/nsd:blowfish/zones/master/sidewalk.ninja.zone diff --git a/openbsd/frontends/etc/httpd.conf b/openbsd/frontends/etc/httpd.conf index bb993ff..5af3338 100644 --- a/openbsd/frontends/etc/httpd.conf +++ b/openbsd/frontends/etc/httpd.conf @@ -21,6 +21,29 @@ server "foo.zone" { } } +server "sidewalk.ninja" { + listen on * port 80 + block return 302 "https://sidewalk.ninja" +} + +server "www.sidewalk.ninja" { + listen on * port 80 + block return 302 "https://www.sidewalk.ninja" +} + +server "sidewalk.ninja" { + alias "www.sidewalk.ninja" + listen on * tls port 443 + tls { + certificate "/etc/ssl/sidewalk.ninja.fullchain.pem" + key "/etc/ssl/private/sidewalk.ninja.key" + } + location "/*" { + root "/htdocs/sidewalk.ninja" + directory auto index + } +} + server "snonux.de" { alias "www.snonux.de" listen on * port 80 diff --git a/openbsd/frontends/var/nsd:blowfish/etc/nsd.conf b/openbsd/frontends/var/nsd:blowfish/etc/nsd.conf index d95a168..920e9a2 100644 --- a/openbsd/frontends/var/nsd:blowfish/etc/nsd.conf +++ b/openbsd/frontends/var/nsd:blowfish/etc/nsd.conf @@ -40,6 +40,12 @@ zone: notify: 108.160.134.135 blowfish.buetow.org provide-xfr: 108.160.134.135 blowfish.buetow.org +zone: + name: "sidewalk.ninja" + zonefile: "master/sidewalk.ninja.zone" + notify: 108.160.134.135 blowfish.buetow.org + provide-xfr: 108.160.134.135 blowfish.buetow.org + zone: name: "snonux.me" zonefile: "master/snonux.me.zone" diff --git a/openbsd/frontends/var/nsd:blowfish/zones/master/sidewalk.ninja.zone b/openbsd/frontends/var/nsd:blowfish/zones/master/sidewalk.ninja.zone new file mode 100644 index 0000000..97174a8 --- /dev/null +++ b/openbsd/frontends/var/nsd:blowfish/zones/master/sidewalk.ninja.zone @@ -0,0 +1,18 @@ +$ORIGIN sidewalk.ninja. +$TTL 4h +@ IN SOA blowfish.buetow.org. hostmaster.buetow.org. ( + 2022011707 ; serial + 1h ; refresh + 30m ; retry + 7d ; expire + 1h ) ; negative + IN NS blowfish.buetow.org. + IN NS twofish.buetow.org. + + IN MX 10 buetow.org. + IN MX 20 www.buetow.org. + + 86400 IN A 23.88.35.144 + 86400 IN AAAA 2a01:4f8:c17:20f1::42 +* 86400 IN CNAME blowfish.buetow.org. +www 86400 IN CNAME twofish.buetow.org. diff --git a/openbsd/frontends/var/nsd:twofish/etc/nsd.conf b/openbsd/frontends/var/nsd:twofish/etc/nsd.conf index 3ce547a..8922730 100644 --- a/openbsd/frontends/var/nsd:twofish/etc/nsd.conf +++ b/openbsd/frontends/var/nsd:twofish/etc/nsd.conf @@ -34,6 +34,11 @@ zone: allow-notify: 23.88.35.144 blowfish.buetow.org request-xfr: 23.88.35.144 blowfish.buetow.org +zone: + name: "sidewalk.ninja" + allow-notify: 23.88.35.144 blowfish.buetow.org + request-xfr: 23.88.35.144 blowfish.buetow.org + zone: name: "snonux.me" allow-notify: 23.88.35.144 blowfish.buetow.org -- cgit v1.2.3