Merge pull request 'open port add nginx route' (#86) from leon/nix-config:master into master

Reviewed-on: #86
This commit is contained in:
astro 2022-11-21 00:48:35 +01:00
commit 64b3f3cb7a
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;
};
};