Merge pull request 'remove vpn2 & vhost' (#117) from leon/nix-config:overlord into master

Reviewed-on: #117
This commit is contained in:
Astro Spaceboyz 2023-05-23 20:33:25 +02:00
commit 0b4b8108b9
1 changed files with 1 additions and 34 deletions

View File

@ -167,31 +167,7 @@
};
#-----------------------------END-VPN---------------------------------
#__________________________Begin-VPN2-Server_____________________
networking.wireguard.interfaces = {
#Interface. Untrusted VPN
vpn2 = {
#IP address && Subnet.
ips = [ "10.10.100.1/24" ];
#VPN Port.
listenPort = 19900;
# Path to the private key file.
#
privateKeyFile = "/etc/wireguard/privatekey";
peers = [
# -----------------leon-Mac-------------------------.
{
publicKey = "6GRIp7SjHyu5sgqudtgZdN9CKbV3GYtMnwgo06F4ylo=";
allowedIPs = [ "10.10.100.0/24" ];
}
];
};
};
#-----------------------------END-VPN---------------------------------
#-----------------------------ngin-X--------------------------------
@ -230,16 +206,7 @@ networking.wireguard.interfaces = {
proxyWebsockets = true;
};
};
virtualHosts."hospital-gly.c3d2.de" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://10.10.11.21";
proxyWebsockets = true;
};
};
};
#-----------------------------ngin-X--------------------------------