turn http3 on

This commit is contained in:
Chaos 2022-12-15 14:58:34 +00:00
parent 0471cbb9df
commit c7c06523d8
No known key found for this signature in database
2 changed files with 15 additions and 3 deletions

View file

@ -28,6 +28,7 @@
];
networking.firewall.allowedTCPPorts = [80 443];
networking.firewall.allowedUDPPorts = [443];
home-manager.users.root = {
imports = with tree; [home.base home.dev.small];

View file

@ -1,10 +1,21 @@
{lib, ...}: {
security.acme = {
{
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;
};
services.nginx = {
config.services.nginx = {
enable = true;
package = pkgs.nginxQuic;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;