1
0
forked from c3d2/nix-config

add-vps-wireguard-server

This commit is contained in:
Leon Vita 2022-08-25 01:44:31 +01:00
parent 5521c14abb
commit 103936aa47

View File

@ -85,21 +85,16 @@ in
# Note: The private key can also be included inline via the privateKey option, # Note: The private key can also be included inline via the privateKey option,
# but this makes the private key world-readable; thus, using privateKeyFile is # but this makes the private key world-readable; thus, using privateKeyFile is
# recommended. # recommended.
privateKeyFile = "will add later"; privateKeyFile = "/etc/wireguard/privatekey";
peers = [ peers = [
# List of allowed peers. # -----------------leon-Mac-------------------------.
{ # Feel free to give a meaning full name {
# Public key of the peer (not a file path). publicKey = "okZuIQ90J49IJ3s+/dZyLthvo4rR2kclmTL54Ykglio=";
publicKey = "{client public key}";
# List of IPs assigned to this peer within the tunnel subnet. Used to configure routing.
allowedIPs = [ "10.10.11.0/24" ]; allowedIPs = [ "10.10.11.0/24" ];
} }
#{ # John Doe
# publicKey = "{john doe's public key}"; ];
# allowedIPs = [ "10.100.0.3/32" ];
# }
];
}; };
}; };