nixfiles/profiles/nginx.nix
2022-12-15 14:58:34 +00:00

28 lines
641 B
Nix

{
pkgs,
lib,
...
}: {
options.services.nginx.virtualHosts = lib.mkOption {
type = lib.types.attrsOf (lib.types.submodule {
config.http3 = lib.mkDefault true;
});
};
config.security.acme = {
defaults = {email = "chaoticryptidz@owo.monster";};
acceptTerms = true;
};
config.services.nginx = {
enable = true;
package = pkgs.nginxQuic;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
commonHttpConfig = "";
clientMaxBodySize = lib.mkDefault "512m";
serverNamesHashBucketSize = 1024;
};
}