28 lines
641 B
Nix
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;
|
|
};
|
|
}
|