open port add nginx route #86

Merged
astro merged 2 commits from :master into master 2022-11-21 00:48:37 +01:00
1 changed files with 4 additions and 8 deletions

View File

@ -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 = {
@ -223,14 +219,14 @@ 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" = {
proxyPass = "http://10.10.11.1:80";
locations."/" = {
proxyPass = "http://45.158.40.162:12000";
proxyWebsockets = true;
};
};