turn http3 on
This commit is contained in:
parent
0471cbb9df
commit
c7c06523d8
|
@ -28,6 +28,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [80 443];
|
networking.firewall.allowedTCPPorts = [80 443];
|
||||||
|
networking.firewall.allowedUDPPorts = [443];
|
||||||
|
|
||||||
home-manager.users.root = {
|
home-manager.users.root = {
|
||||||
imports = with tree; [home.base home.dev.small];
|
imports = with tree; [home.base home.dev.small];
|
||||||
|
|
|
@ -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";};
|
defaults = {email = "chaoticryptidz@owo.monster";};
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
};
|
};
|
||||||
services.nginx = {
|
config.services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.nginxQuic;
|
||||||
recommendedGzipSettings = true;
|
recommendedGzipSettings = true;
|
||||||
recommendedOptimisation = true;
|
recommendedOptimisation = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
|
|
Loading…
Reference in a new issue