Recommended nginx settings

This commit is contained in:
Julien Hémono 2025-05-01 18:41:05 +02:00
parent 8c2a444b44
commit 7ee6d7c77d
3 changed files with 11 additions and 1 deletions

View file

@ -10,6 +10,7 @@
./hardware-configuration.nix ./hardware-configuration.nix
# Supporting # Supporting
./buckets.nix ./buckets.nix
./nginx.nix
./mailu.nix ./mailu.nix
# Services # Services
./suite.nix ./suite.nix

View file

@ -12,7 +12,6 @@ in {
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "https://localhost:8081"; proxyPass = "https://localhost:8081";
recommendedProxySettings = true;
}; };
}; };
}; };

10
hosts/sesame/nginx.nix Normal file
View file

@ -0,0 +1,10 @@
{ pkgs, lib, config, ... }:
{
services.nginx = {
recommendedProxySettings = true;
recommendedOptimisation = true;
recommendedGzipSettings = true;
recommendedTlsSettings = true;
};
}