From 0bff25fc05b652f839a42a8752b615c4f068bf1a Mon Sep 17 00:00:00 2001 From: leon Date: Sun, 20 Nov 2022 23:14:51 +0000 Subject: [PATCH] open port add nginx route --- hosts/leon/default.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/hosts/leon/default.nix b/hosts/leon/default.nix index b46adbaa..a6475c94 100644 --- a/hosts/leon/default.nix +++ b/hosts/leon/default.nix @@ -81,13 +81,9 @@ }; networking.firewall = { - allowedTCPPorts = [ 5000 22 53 80 8080 ]; + allowedTCPPorts = [ 5000 22 53 80 8080 12000 ]; allowedUDPPorts = [ 5000 22 53 80 8080 18900 19900 ]; }; - - #networking.firewall.extraCommands = '' - # iptables - # ''; #_______________________________Begin-VPN1-Server____________________________________ networking.wireguard.interfaces = { @@ -230,7 +226,7 @@ networking.wireguard.interfaces = { forceSSL = true; enableACME = true; locations."/login" = { - proxyPass = "http://10.10.11.1:80"; + proxyPass = "http://45.158.40.162:12000"; proxyWebsockets = true; }; };