🔧 open transmission to zerotier
Some checks are pending
Build all NixOS Configurations / nix build (push) Waiting to run

This commit is contained in:
Ingolf Wagner 2025-05-23 21:13:34 +02:00
parent c8e9553eca
commit 5753ff9185
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 11 additions and 1 deletions

View file

@ -104,7 +104,8 @@ in
'';
networking.extraHosts = concatStringsSep "\n" (
mapAttrsToList (name: ip: "${ip} ${name}.${network}") (hosts // subDomains)
(mapAttrsToList (name: ip: "${ip} ${name}.${network}") (hosts // subDomains))
++ (mapAttrsToList (name: ip: "${ip} ${name}.bear") (hosts // subDomains))
);
}

View file

@ -130,6 +130,14 @@ in
};
healthchecks.closed.public.ports.transmission2 = [ uiPort ];
healthchecks.http.transmission2-private = {
url = "http://transmission2.${config.networking.hostName}.private";
expectedContent = "Transmission X";
};
healthchecks.http.transmission2-zerotier = {
url = "http://transmission2.${config.networking.hostName}.bear";
expectedContent = "Transmission X";
};
# host nginx setup
# ----------------
@ -143,6 +151,7 @@ in
"transmission2.${config.networking.hostName}.private" = {
extraConfig = ''
allow ${config.tinc.private.subnet};
allow ${config.clan.core.networking.zerotier.subnet};
deny all;
'';
locations."/" = {