2024-10-20 20:35:04 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
services.caddy = {
|
|
|
|
enable = true;
|
|
|
|
configFile = pkgs.writeText "Caddyfile" ''
|
2024-11-30 19:24:43 +00:00
|
|
|
{
|
|
|
|
acme_ca https://ca.home.2rjus.net/acme/acme/directory
|
2024-12-04 03:02:24 +00:00
|
|
|
servers {
|
|
|
|
metrics
|
|
|
|
}
|
2024-11-30 19:24:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
nzbget.home.2rjus.net {
|
2024-11-30 11:53:03 +00:00
|
|
|
log {
|
|
|
|
output file /var/log/caddy/nzbget.log
|
|
|
|
}
|
|
|
|
reverse_proxy http://nzbget-jail.home.2rjus.net:6789
|
2024-10-20 20:39:40 +00:00
|
|
|
}
|
|
|
|
|
2024-11-30 19:24:43 +00:00
|
|
|
radarr.home.2rjus.net {
|
2024-11-30 11:53:03 +00:00
|
|
|
log {
|
|
|
|
output file /var/log/caddy/radarr.log
|
|
|
|
}
|
|
|
|
reverse_proxy http://radarr-jail.home.2rjus.net:7878
|
2024-10-20 20:39:40 +00:00
|
|
|
}
|
|
|
|
|
2024-11-30 19:24:43 +00:00
|
|
|
sonarr.home.2rjus.net {
|
2024-11-30 11:53:03 +00:00
|
|
|
log {
|
|
|
|
output file /var/log/caddy/sonarr.log
|
|
|
|
}
|
|
|
|
reverse_proxy http://sonarr-jail.home.2rjus.net:8989
|
2024-10-20 20:35:04 +00:00
|
|
|
}
|
2024-11-30 19:24:43 +00:00
|
|
|
ha.home.2rjus.net {
|
2024-11-30 11:53:03 +00:00
|
|
|
log {
|
|
|
|
output file /var/log/caddy/ha.log
|
|
|
|
}
|
|
|
|
reverse_proxy http://ha1.home.2rjus.net:8123
|
2024-11-09 13:07:40 +00:00
|
|
|
}
|
2024-11-30 19:24:43 +00:00
|
|
|
z2m.home.2rjus.net {
|
2024-11-30 11:53:03 +00:00
|
|
|
log {
|
|
|
|
output file /var/log/caddy/z2m.log
|
|
|
|
}
|
|
|
|
reverse_proxy http://ha1.home.2rjus.net:8080
|
2024-11-09 13:07:40 +00:00
|
|
|
}
|
2024-10-20 20:35:04 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|