mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 14:08:44 +08:00
nebula: use relay
This commit is contained in:
parent
b8dcfa0fd6
commit
01213d9eff
@ -24,10 +24,11 @@ inputs:
|
||||
firewall.outbound = [ { host = "any"; port = "any"; proto = "any"; } ];
|
||||
}
|
||||
// (
|
||||
if nebula.lighthouse == null then { isLighthouse = true; }
|
||||
if nebula.lighthouse == null then { isLighthouse = true; isRelay = true; }
|
||||
else
|
||||
{
|
||||
lighthouses = [ "192.168.82.1" ];
|
||||
relays = [ "192.168.82.1" ];
|
||||
staticHostMap."192.168.82.1" = [ "${nebula.lighthouse}:4242" ];
|
||||
listen.port = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user