From 0bff25fc05b652f839a42a8752b615c4f068bf1a Mon Sep 17 00:00:00 2001 From: leon Date: Sun, 20 Nov 2022 23:14:51 +0000 Subject: [PATCH 1/2] 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; }; }; From b339f45d36320dee0e58c2a1bbc8f8690c297673 Mon Sep 17 00:00:00 2001 From: leon Date: Sun, 20 Nov 2022 23:25:23 +0000 Subject: [PATCH 2/2] change things --- hosts/leon/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/leon/default.nix b/hosts/leon/default.nix index a6475c94..9639cf97 100644 --- a/hosts/leon/default.nix +++ b/hosts/leon/default.nix @@ -219,13 +219,13 @@ networking.wireguard.interfaces = { #-----------------------------ngin-X-------------------------------- services.nginx = { - listen 80; + listen 8080; enable = true; virtualHosts."bicospacetech.c3d2.de" = { default = true; forceSSL = true; enableACME = true; - locations."/login" = { + locations."/" = { proxyPass = "http://45.158.40.162:12000"; proxyWebsockets = true; };