remove vpn2 & vhost #117
|
@ -167,31 +167,7 @@
|
||||||
};
|
};
|
||||||
#-----------------------------END-VPN---------------------------------
|
#-----------------------------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---------------------------------
|
#-----------------------------END-VPN---------------------------------
|
||||||
|
|
||||||
#-----------------------------ngin-X--------------------------------
|
#-----------------------------ngin-X--------------------------------
|
||||||
|
@ -230,16 +206,7 @@ networking.wireguard.interfaces = {
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
virtualHosts."hospital-gly.c3d2.de" = {
|
|
||||||
forceSSL = true;
|
|
||||||
enableACME = true;
|
|
||||||
locations."/" = {
|
|
||||||
proxyPass = "http://10.10.11.21";
|
|
||||||
proxyWebsockets = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
#-----------------------------ngin-X--------------------------------
|
#-----------------------------ngin-X--------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user