- flake.nix exposes a devShell (openstackclient, opentofu, sops, age) plus
nixosConfigurations.watcher (runtime) and packages.watcher-image (QCOW2
via nixos-generators / openstack format).
- hosts/watcher/default.nix: SSH-only base, tyro user with key auth, root
SSH disabled, trusted-users set so laptop closure pushes work.
- modules/website.nix: Caddy serves tyrolize.ch from sites/tyrolize.ch/;
lize.ch 301-redirects; firewall opens 80/443. Let's Encrypt via HTTP-01.
- terraform/infomaniak/: OpenStack provider, security group (22/80/443),
keypair, compute instance booted from the uploaded image. Auth via OS_*
env vars sourced from terraform/infomaniak/.env by the devShell hook.
- scripts/build-image.sh + scripts/deploy.sh.
- dns/{tyrolize,lize}.ch.zone: full BIND zone files for the advanced view
in Infomaniak DNS Manager; preserves kSuite mail records on lize.ch.
Watcher live at 195.15.203.200 (IPv6 2001:1600:10💯:b4e), NixOS 25.05.
HTTPS confirmed working on both domains.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
26 lines
1.1 KiB
Dns
26 lines
1.1 KiB
Dns
; Domain: lize.ch
|
|
; All existing kSuite mail records preserved exactly as-is.
|
|
; Adds: A/AAAA for the apex (Caddy on the watcher 301-redirects to
|
|
; https://tyrolize.ch), plus CAA restricting TLS to Let's Encrypt.
|
|
|
|
$TTL 3600
|
|
|
|
@ IN SOA ns11.infomaniak.ch. hostmaster.infomaniak.ch. (2026061610 10800 3600 605800 3600)
|
|
@ 3600 IN NS ns11.infomaniak.ch.
|
|
@ 3600 IN NS ns12.infomaniak.ch.
|
|
|
|
; --- kSuite mail (DO NOT TOUCH) ---
|
|
@ 3600 IN MX 5 mta-gw.infomaniak.ch.
|
|
@ 3600 IN TXT "v=spf1 include:spf.infomaniak.ch -all"
|
|
autoconfig 3600 IN CNAME infomaniak.com.
|
|
autodiscover 3600 IN CNAME infomaniak.com.
|
|
_dmarc 3600 IN TXT "v=DMARC1; p=reject;"
|
|
_domainkey 3600 IN NS ns11.infomaniak.ch.
|
|
_domainkey 3600 IN NS ns12.infomaniak.ch.
|
|
|
|
; --- New: apex points at watcher VM for the redirect to tyrolize.ch ---
|
|
@ 300 IN A 195.15.203.200
|
|
@ 300 IN AAAA 2001:1600:10:100::b4e
|
|
|
|
; --- Restrict TLS cert issuance to Let's Encrypt ---
|
|
@ 3600 IN CAA 0 issue "letsencrypt.org"
|