nixos-servers/services/http-proxy/proxy.nix
Torjus Håkestad 0058264fe1
All checks were successful
Run nix flake check / flake-check (push) Successful in 2m56s
Periodic flake update / flake-update (push) Successful in 2m16s
Add home-assistant to proxy
2024-11-09 14:07:40 +01:00

26 lines
638 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
}
http://ha.home.2rjus.net {
reverse_proxy http://ha1.home.2rjus.net:8123
}
http://z2m.home.2rjus.net {
reverse_proxy http://ha1.home.2rjus.net:8080
}
'';
};
}