Compare commits

...

2 Commits

Author SHA1 Message Date
1da20471a8
Add jq to system packages
All checks were successful
Run nix flake check / flake-check (push) Successful in 3m45s
2024-11-30 12:53:20 +01:00
35071d5fc2
Add logging to http proxy 2024-11-30 12:53:20 +01:00
2 changed files with 21 additions and 5 deletions

View File

@ -4,20 +4,35 @@
enable = true; enable = true;
configFile = pkgs.writeText "Caddyfile" '' configFile = pkgs.writeText "Caddyfile" ''
http://nzbget.home.2rjus.net { http://nzbget.home.2rjus.net {
log {
output file /var/log/caddy/nzbget.log
}
reverse_proxy http://nzbget-jail.home.2rjus.net:6789 reverse_proxy http://nzbget-jail.home.2rjus.net:6789
} }
http://radarr.home.2rjus.net { http://radarr.home.2rjus.net {
log {
output file /var/log/caddy/radarr.log
}
reverse_proxy http://radarr-jail.home.2rjus.net:7878 reverse_proxy http://radarr-jail.home.2rjus.net:7878
} }
http://sonarr.home.2rjus.net { http://sonarr.home.2rjus.net {
log {
output file /var/log/caddy/sonarr.log
}
reverse_proxy http://sonarr-jail.home.2rjus.net:8989 reverse_proxy http://sonarr-jail.home.2rjus.net:8989
} }
http://ha.home.2rjus.net { http://ha.home.2rjus.net {
log {
output file /var/log/caddy/ha.log
}
reverse_proxy http://ha1.home.2rjus.net:8123 reverse_proxy http://ha1.home.2rjus.net:8123
} }
http://z2m.home.2rjus.net { http://z2m.home.2rjus.net {
log {
output file /var/log/caddy/z2m.log
}
reverse_proxy http://ha1.home.2rjus.net:8080 reverse_proxy http://ha1.home.2rjus.net:8080
} }
''; '';

View File

@ -2,5 +2,6 @@
{ {
environment.systemPackages = [ environment.systemPackages = [
pkgs.git pkgs.git
pkgs.jq
]; ];
} }