refactor(nginx): Clean up nginx configuration

This commit is contained in:
Tristan Daniël Maat 2025-11-13 04:07:10 +08:00
parent d82c353329
commit 767a14ab6e
Signed by: tlater
GPG key ID: 02E935006CF2E8E7
8 changed files with 177 additions and 171 deletions

View file

@ -0,0 +1,22 @@
{ lib, ... }:
{
imports = [
./logging.nix
./ssl.nix
];
options.services.nginx.domain = lib.mkOption {
type = lib.types.str;
description = "The base domain name to append to virtual domain names";
};
config.services.nginx = {
enable = true;
recommendedTlsSettings = true;
recommendedOptimisation = true;
recommendedGzipSettings = true;
recommendedProxySettings = true;
clientMaxBodySize = "10G";
statusPage = true; # For metrics, should be accessible only from localhost
};
}