diff --git a/nix/hosts/chunk/Caddyfile b/nix/hosts/chunk/Caddyfile new file mode 100644 index 0000000..2a2cde6 --- /dev/null +++ b/nix/hosts/chunk/Caddyfile @@ -0,0 +1,62 @@ +{ + acme_ca https://acme.zerossl.com/v2/DV90 + acme_eab { + key_id {$EAB_KEY_ID} + mac_key {$EAB_MAC_KEY} + } +} + +anki.cy7.sh { + reverse_proxy localhost:27701 +} + +git.cy7.sh, git.cything.io { + reverse_proxy localhost:3000 +} + +rss.cy7.sh { + reverse_proxy localhost:8080 +} + +photos.cy7.sh { + reverse_proxy localhost:2283 +} + +matrix.cy7.sh, chat.cything.io { + reverse_proxy localhost:8448 +} + +pass.cy7.sh { + reverse_proxy localhost:8081 +} + +dns.cy7.sh { + reverse_proxy localhost:8082 +} + +ntfy.cything.io { + reverse_proxy localhost:8083 +} + +cything.io { + uri strip_prefix /blog + reverse_proxy /.well-known/matrix/* localhost:8448 + reverse_proxy /_matrix/* localhost:8448 + reverse_proxy localhost:8084 +} + +www.cything.io { + redir https://cything.io{uri} permanent +} + +cloud.cything.io { + reverse_proxy localhost:11000 +} + +pad.cything.io { + reverse_proxy localhost:8085 +} + +red.cything.io { + reverse_proxy localhost:8087 +} diff --git a/nix/hosts/chunk/default.nix b/nix/hosts/chunk/default.nix index 5db700b..bb6b0c6 100644 --- a/nix/hosts/chunk/default.nix +++ b/nix/hosts/chunk/default.nix @@ -128,7 +128,7 @@ in { services.caddy = { enable = true; - configFile = ../Caddyfile; + configFile = ./Caddyfile; environmentFile = "/run/secrets/caddy"; logFormat = lib.mkForce "level INFO"; };