treewide: nginx optimizations

This commit is contained in:
h7x4
2024-04-10 22:01:19 +02:00
parent e22c7d5b4d
commit 065992620e
14 changed files with 42 additions and 57 deletions

View File

@@ -4,19 +4,5 @@
./ingress.nix
];
security.acme = {
acceptTerms = true;
defaults.email = "drift@pvv.ntnu.no";
};
services.nginx = {
enable = true;
recommendedTlsSettings = true;
recommendedProxySettings = true;
recommendedOptimisation = true;
recommendedGzipSettings = true;
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
services.nginx.enable = true;
}

View File

@@ -5,6 +5,7 @@
serverAliases = [ "www2.pvv.org" "pvv.ntnu.no" "pvv.org" ];
addSSL = true;
enableACME = true;
kTLS = true;
locations = {
# Proxy home directories