feat(bind9): Add nix-cache record and Binnenpost proxy
This commit is contained in:
parent
a933b7d735
commit
c0f5d9ef1f
2 changed files with 13 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, inputs, config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
|
|
@ -83,6 +83,14 @@
|
||||||
|
|
||||||
"traefik.http.routers.hugo.rule" = "Host(`hugo.depeuter.dev`)";
|
"traefik.http.routers.hugo.rule" = "Host(`hugo.depeuter.dev`)";
|
||||||
"traefik.http.services.hugo.loadbalancer.server.url" = "https://192.168.0.11:444";
|
"traefik.http.services.hugo.loadbalancer.server.url" = "https://192.168.0.11:444";
|
||||||
|
|
||||||
|
"traefik.http.routers.attic.rule" = "Host(`${inputs.self.nixosConfigurations.BinaryCache.config.homelab.services.attic.domain}`)";
|
||||||
|
"traefik.http.services.attic.loadbalancer.server.url" =
|
||||||
|
let
|
||||||
|
bcConfig = inputs.self.nixosConfigurations.BinaryCache.config;
|
||||||
|
bcIp = (pkgs.lib.head bcConfig.networking.interfaces.ens18.ipv4.addresses).address;
|
||||||
|
bcPort = bcConfig.homelab.services.attic.port;
|
||||||
|
in "http://${bcIp}:${toString bcPort}";
|
||||||
};
|
};
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
$TTL 604800
|
$TTL 604800
|
||||||
@ IN SOA ns1 admin (
|
@ IN SOA ns1 admin (
|
||||||
15 ; Serial
|
16 ; Serial
|
||||||
604800 ; Refresh
|
604800 ; Refresh
|
||||||
86400 ; Retry
|
86400 ; Retry
|
||||||
2419200 ; Expire
|
2419200 ; Expire
|
||||||
|
|
@ -40,6 +40,9 @@ sonarr IN A 192.168.0.33
|
||||||
; Development VM
|
; Development VM
|
||||||
plex IN A 192.168.0.91
|
plex IN A 192.168.0.91
|
||||||
|
|
||||||
|
; Binary Cache (via Binnenpost proxy)
|
||||||
|
nix-cache IN A 192.168.0.89
|
||||||
|
|
||||||
; Catchalls
|
; Catchalls
|
||||||
*.production IN A 192.168.0.31
|
*.production IN A 192.168.0.31
|
||||||
*.development IN A 192.168.0.91
|
*.development IN A 192.168.0.91
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue