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

@@ -7,7 +7,7 @@
services.nginx.virtualHosts."webmail2.pvv.ntnu.no" = {
forceSSL = true;
enableACME = true;
#locations."/" = lib.mkForce { };
kTLS = true;
locations."= /" = {
return = "301 https://www.pvv.ntnu.no/mail/";
};

View File

@@ -35,6 +35,7 @@ in
services.nginx.virtualHosts."roundcubeplaceholder.example.com" = lib.mkForce { };
services.nginx.virtualHosts.${domain} = {
kTLS = true;
locations."/roundcube" = {
tryFiles = "$uri $uri/ =404";
index = "index.php";