nginx
This commit is contained in:
parent
c26cc20f57
commit
d53e340966
8 changed files with 93 additions and 36 deletions
|
|
@ -8,7 +8,7 @@ let
|
|||
}) var.wg.ips;
|
||||
in
|
||||
rec {
|
||||
hostsFile = lib.concatStringsSep "\n" (lib.mapAttrsFlatten (n: v: "${v}\t${n}") hosts);
|
||||
hostsFile = lib.concatStringsSep "\n" (lib.mapAttrsToList (n: v: "${v}\t${n}") hosts);
|
||||
hosts =
|
||||
lan-hosts
|
||||
// lib.mapAttrs' (name: value: {
|
||||
|
|
|
|||
|
|
@ -15,13 +15,15 @@ rec {
|
|||
};
|
||||
"solo" = {
|
||||
publicKey = publicKey."solo";
|
||||
ips = [ "10.10.11.2/24" ];
|
||||
ips = [ "10.10.11.2/32" ];
|
||||
allowedIPs = [ "10.10.11.2/32" ];
|
||||
persistentKeepalive = 13;
|
||||
};
|
||||
"c2" = {
|
||||
publicKey = publicKey."c2";
|
||||
ips = [ "10.10.11.3/24" ];
|
||||
ips = [ "10.10.11.3/32" ];
|
||||
allowedIPs = [ "10.10.11.3/32" ];
|
||||
persistentKeepalive = 19;
|
||||
};
|
||||
};
|
||||
keyFile = "/var/secrets/wg.key";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue