🔧 open transmission to zerotier
Some checks are pending
Build all NixOS Configurations / nix build (push) Waiting to run
Some checks are pending
Build all NixOS Configurations / nix build (push) Waiting to run
This commit is contained in:
parent
c8e9553eca
commit
5753ff9185
2 changed files with 11 additions and 1 deletions
|
@ -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))
|
||||
);
|
||||
|
||||
}
|
||||
|
|
|
@ -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."/" = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue