open port add nginx route #86

Merged
astro merged 2 commits from :master into master 2022-11-21 00:48:37 +01:00

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 = {
@ -223,14 +219,14 @@ networking.wireguard.interfaces = {
#-----------------------------ngin-X-------------------------------- #-----------------------------ngin-X--------------------------------
services.nginx = { services.nginx = {
listen 80; listen 8080;
enable = true; enable = true;
virtualHosts."bicospacetech.c3d2.de" = { virtualHosts."bicospacetech.c3d2.de" = {
default = true; default = true;
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/login" = { locations."/" = {
proxyPass = "http://10.10.11.1:80"; proxyPass = "http://45.158.40.162:12000";
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };