Compare commits

...

4 Commits

Author SHA1 Message Date
fcaba18602
Fix service urls for proxy
All checks were successful
Run nix flake check / flake-check (push) Successful in 2m45s
Periodic flake update / flake-update (push) Successful in 1m29s
2024-10-20 22:45:08 +02:00
42f74df4a5
Add services to proxy 2024-10-20 22:39:40 +02:00
a2db4db09e
Add new cnames for proxy 2024-10-20 22:37:33 +02:00
c3e37b3661
Update zone 2024-10-20 22:19:39 +02:00
4 changed files with 30 additions and 5 deletions

View File

@ -2,6 +2,6 @@
{ {
imports = [ imports = [
./configuration.nix ./configuration.nix
../../services/home-assistant ../../services/http-proxy
]; ];
} }

View File

@ -1,3 +1,6 @@
{ pkgs, config, ... }: { pkgs, config, ... }:
{ {
imports = [
./proxy.nix
];
} }

View File

@ -0,0 +1,19 @@
{ 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
}
'';
};
}

View File

@ -1,7 +1,7 @@
$ORIGIN home.2rjus.net. $ORIGIN home.2rjus.net.
$TTL 1800 $TTL 1800
@ IN SOA ns1.home.2rjus.net. admin.test.2rjus.net. ( @ IN SOA ns1.home.2rjus.net. admin.test.2rjus.net. (
2037 ; serial number 2039 ; serial number
3600 ; refresh 3600 ; refresh
900 ; retry 900 ; retry
1209600 ; expire 1209600 ; expire
@ -38,10 +38,10 @@ gw IN A 10.69.10.1
; 12_CORE ; 12_CORE
virt-mini1 IN A 10.69.12.11 virt-mini1 IN A 10.69.12.11
nas IN A 10.69.12.50 nas IN A 10.69.12.50
nzbget IN A 10.69.12.51 nzbget-jail IN A 10.69.12.51
restic IN A 10.69.12.52 restic IN A 10.69.12.52
radarr IN A 10.69.12.53 radarr-jail IN A 10.69.12.53
sonarr IN A 10.69.12.54 sonarr-jail IN A 10.69.12.54
bazarr IN A 10.69.12.55 bazarr IN A 10.69.12.55
mpnzb IN A 10.69.12.57 mpnzb IN A 10.69.12.57
pve1 IN A 10.69.12.75 pve1 IN A 10.69.12.75
@ -56,6 +56,9 @@ ns4 IN A 10.69.13.8
ha1 IN A 10.69.13.9 ha1 IN A 10.69.13.9
nixos-test1 IN A 10.69.13.10 nixos-test1 IN A 10.69.13.10
http-proxy IN A 10.69.13.11 http-proxy IN A 10.69.13.11
nzbget IN CNAME http-proxy
radarr IN CNAME http-proxy
sonarr IN CNAME http-proxy
; 22_WLAN ; 22_WLAN
unifi-ctrl IN A 10.69.22.5 unifi-ctrl IN A 10.69.22.5