Merge pull request 'open port add nginx route' (#86) from leon/nix-config:master into master
Reviewed-on: #86
This commit is contained in:
commit
64b3f3cb7a
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue