nginx: enable http3
This commit is contained in:
parent
03c32f38d0
commit
98f4b06cf8
2 changed files with 6 additions and 4 deletions
|
@ -1,4 +1,6 @@
|
|||
{ config, lib, ... }: with lib; {
|
||||
{ config, lib, pkgs, ... }: let
|
||||
inherit (lib) mkDefault;
|
||||
in {
|
||||
kyouma.deployment.tags = [ "web" ];
|
||||
security.dhparams.enable = true;
|
||||
security.dhparams.params.nginx = {};
|
||||
|
@ -11,7 +13,7 @@
|
|||
};
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
#package = pkgs.nginxQuic;
|
||||
package = pkgs.nginxQuic;
|
||||
|
||||
recommendedGzipSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
extraConfig = (lib.optionalString (builtins.hasAttr "extraConfig" vhostCfg) vhostCfg.extraConfig) + "\n" + extraConfig;
|
||||
forceSSL = true;
|
||||
#kTLS = true;
|
||||
#http3 = true;
|
||||
#quic = true;
|
||||
http3 = true;
|
||||
quic = true;
|
||||
} //
|
||||
lib.optionalAttrs (!(builtins.hasAttr "useACMEHost" vhostCfg)) {
|
||||
enableACME = true;
|
||||
|
|
Loading…
Reference in a new issue