leoncloud #91

Closed
leon wants to merge 18 commits from (deleted):leoncloud into master
2 changed files with 27 additions and 19 deletions

View File

@ -207,10 +207,11 @@ networking.wireguard.interfaces = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://10.10.11.4:80";
proxyPass = "http://45.158.40.165:80";
proxyWebsockets = true;
};
};
};
virtualHosts."portainer.netlab.c3d2.de" = {
forceSSL = true;
enableACME = true;
@ -219,7 +220,14 @@ networking.wireguard.interfaces = {
proxyWebsockets = true;
};
};
virtualHosts."bicospacetech.stream.c3d2.de" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://10.10.11.4:14500";
proxyWebsockets = true;
};
};
};
#-----------------------------ngin-X--------------------------------

View File

@ -8,7 +8,6 @@
};
nix.settings.auto-optimise-store = lib.mkForce false;
networking = {
hostName = "leoncloud";
firewall.enable = true;
@ -43,11 +42,10 @@
leon.sshKeys;
};
# enable IP routing
networking.firewall = {
allowedTCPPorts = [ 80 443 22 53 14000 14500 15000 ];
allowedTCPPorts = [ 80 443 8080 22 53 14000 14500 15000 ];
allowedUDPPorts = [ 18900 53 ];
};
@ -74,7 +72,6 @@
];
};
};
#<-----------------wireguard client---------------
#>-----------------nextcloud----------------------
@ -89,7 +86,7 @@ services.nextcloud = {
dbname = "nextcloud";
adminpassFile = "/etc/nixos/next-cloud/pass";
adminuser = "root";
extraTrustedDomains = ["10.10.11.4" "10.10.11.1" "bicospacetech.cloud.c3d2.de"];
extraTrustedDomains = ["10.10.11.4" "10.10.11.1" "45.158.40.165" "bicospacetech.cloud.c3d2.de"];
};
};
@ -110,23 +107,26 @@ services.nextcloud = {
after = ["postgresql.service"];
};
# services.nginx.virtualHosts."localhost".listen = [ { addr = "127.0.0.1"; port = 8080; } ];
#<-----------------nextcloud----------------------
#-----------------------------ngin-X--------------------------------
# services.nginx = {
# enable = true;
# virtualHosts."bicospacetech.c3d2.de" = {
# forceSSL = true;
# enableACME = true;
# locations."/" = {
# proxyPass = "http://45.158.40.162:12000";
# proxyWebsockets = true;
# };
# # Use recommended settings
# recommendedGzipSettings = true;
# recommendedOptimisation = true;
# recommendedProxySettings = true;
# recommendedTlsSettings = true;
# virtualHosts."bicospacetech.cloud.c3d2.de" = {
# forceSSL = true;
# enableACME = true;
# locations."/" = {
# proxyPass = "http://10.10.11.4:80";
# proxyWebsockets = true;
# };
# };
#};
#-----------------------------ngin-X--------------------------------