Merge pull request 'master' (#81) from leon/nix-config:master into master

Reviewed-on: #81
This commit is contained in:
astro 2022-11-15 15:24:56 +01:00
commit 96fe378656
2 changed files with 24 additions and 1 deletions

View File

@ -216,5 +216,23 @@ networking.wireguard.interfaces = {
#-----------------------------END-VPN---------------------------------
#-----------------------------ngin-X--------------------------------
# services.nginx = {
# listen 80;
# enable = true;
# virtualHosts."bicospacetech.c3d2.de" = {
# default = true;
# forceSSL = true;
# enableACME = true;
# locations."/login" = {
# proxyPass = "http://10.10.11.1:80";
# proxyWebsockets = true;
# };
# };
#-----------------------------ngin-X--------------------------------
system.stateVersion = "22.05";
}

View File

@ -54,6 +54,11 @@
];
};
# enable IP routing
boot.kernel.sysctl."net.ipv4.conf.all.forwarding" = 1;
boot.kernel.sysctl."net.ipv4.conf.default.forwarding" = 1;
networking.firewall = {
allowedTCPPorts = [ 80 443 22 53 14000 14500 15000 ];
allowedUDPPorts = [ 18900 53 ];
@ -97,7 +102,7 @@ services.nextcloud = {
dbname = "nextcloud";
adminpassFile = "/etc/nixos/next-cloud/pass";
adminuser = "root";
extraTrustedDomains = [ "172.20.79.254" "10.10.11.4" ];
extraTrustedDomains = [ "172.20.79.254" "10.10.11.4" "10.10.11.1" ];
};
};