nixos-servers/services/http-proxy/proxy.nix
Torjus Håkestad fcaba18602
All checks were successful
Run nix flake check / flake-check (push) Successful in 2m45s
Periodic flake update / flake-update (push) Successful in 1m29s
Fix service urls for proxy
2024-10-20 22:45:08 +02:00

20 lines
445 B
Nix

{ pkgs, ... }:
{
services.caddy = {
enable = true;
configFile = pkgs.writeText "Caddyfile" ''
http://nzbget.home.2rjus.net {
reverse_proxy http://nzbget-jail.home.2rjus.net:6789
}
http://radarr.home.2rjus.net {
reverse_proxy http://radarr-jail.home.2rjus.net:7878
}
http://sonarr.home.2rjus.net {
reverse_proxy http://sonarr-jail.home.2rjus.net:8989
}
'';
};
}