open port add nginx route

This commit is contained in:
Leon Vita 2022-11-20 23:14:51 +00:00
parent d60a2c7a45
commit 0bff25fc05
1 changed files with 2 additions and 6 deletions

View File

@ -81,13 +81,9 @@
}; };
networking.firewall = { networking.firewall = {
allowedTCPPorts = [ 5000 22 53 80 8080 ]; allowedTCPPorts = [ 5000 22 53 80 8080 12000 ];
allowedUDPPorts = [ 5000 22 53 80 8080 18900 19900 ]; allowedUDPPorts = [ 5000 22 53 80 8080 18900 19900 ];
}; };
#networking.firewall.extraCommands = ''
# iptables
# '';
#_______________________________Begin-VPN1-Server____________________________________ #_______________________________Begin-VPN1-Server____________________________________
networking.wireguard.interfaces = { networking.wireguard.interfaces = {
@ -230,7 +226,7 @@ networking.wireguard.interfaces = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/login" = { locations."/login" = {
proxyPass = "http://10.10.11.1:80"; proxyPass = "http://45.158.40.162:12000";
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };