bring caddyfile here

This commit is contained in:
cy 2024-12-13 22:01:01 -05:00
parent 69c6d76572
commit e0533f2445
2 changed files with 63 additions and 1 deletions

62
nix/hosts/chunk/Caddyfile Normal file
View file

@ -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
}

View file

@ -128,7 +128,7 @@ in {
services.caddy = { services.caddy = {
enable = true; enable = true;
configFile = ../Caddyfile; configFile = ./Caddyfile;
environmentFile = "/run/secrets/caddy"; environmentFile = "/run/secrets/caddy";
logFormat = lib.mkForce "level INFO"; logFormat = lib.mkForce "level INFO";
}; };