forked from Deuxfleurs/nixcfg
different wgautomesh gossip ports for prod and staging
This commit is contained in:
parent
607add3161
commit
6c07a42978
2 changed files with 8 additions and 1 deletions
|
@ -38,6 +38,8 @@
|
|||
endpoint = "bitfrost.fiber.shirokumo.net:33734";
|
||||
};
|
||||
};
|
||||
|
||||
deuxfleurs.wgautomeshPort = 1667;
|
||||
services.wgautomesh.logLevel = "debug";
|
||||
|
||||
# Bootstrap IPs for Consul cluster,
|
||||
|
|
|
@ -117,6 +117,11 @@ in
|
|||
type = port;
|
||||
default = 33799;
|
||||
};
|
||||
wgautomeshPort = mkOption {
|
||||
description = "Gossip port for wgautomesh";
|
||||
type = port;
|
||||
default = 1666;
|
||||
};
|
||||
};
|
||||
|
||||
imports = [
|
||||
|
@ -245,7 +250,7 @@ in
|
|||
services.wgautomesh = {
|
||||
enable = true;
|
||||
interface = "wg0";
|
||||
gossipPort = 1666;
|
||||
gossipPort = cfg.wgautomeshPort;
|
||||
gossipSecretFile = "/var/lib/wgautomesh/gossip_secret";
|
||||
persistFile = "/var/lib/wgautomesh/state";
|
||||
upnpForwardPublicPort =
|
||||
|
|
Loading…
Reference in a new issue