nixfiles/profiles/nginx.nix

28 lines
641 B
Nix
Raw Normal View History

2022-12-15 14:58:34 +00:00
{
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";};
2021-12-28 21:42:46 +00:00
acceptTerms = true;
};
2022-12-15 14:58:34 +00:00
config.services.nginx = {
2021-12-28 21:42:46 +00:00
enable = true;
2022-12-15 14:58:34 +00:00
package = pkgs.nginxQuic;
2021-12-28 21:42:46 +00:00
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
commonHttpConfig = "";
2022-11-20 11:04:42 +00:00
clientMaxBodySize = lib.mkDefault "512m";
2022-01-01 17:28:16 +00:00
serverNamesHashBucketSize = 1024;
2021-12-28 21:42:46 +00:00
};
2022-11-02 11:32:03 +00:00
}