From cf86ed23308ed8ff750910e972aeea39d14190c7 Mon Sep 17 00:00:00 2001 From: leonvita91 Date: Tue, 23 May 2023 18:31:36 +0100 Subject: [PATCH] remove vpn2 & vhost --- hosts/leon/default.nix | 35 +---------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/hosts/leon/default.nix b/hosts/leon/default.nix index 489ae7e0..9491622a 100644 --- a/hosts/leon/default.nix +++ b/hosts/leon/default.nix @@ -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--------------------------------