From 0d4283f10955926f6d10ad0a98e93ad8617ce760 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Tue, 16 Apr 2024 20:32:29 +0200 Subject: [PATCH] Revert "nginx: disable http3 to prevent wordpress error" This reverts commit 8606e89c031ce5433806cafa519184b28174bbab. --- modules/core/nginx.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/core/nginx.nix b/modules/core/nginx.nix index 477663c..36e596e 100644 --- a/modules/core/nginx.nix +++ b/modules/core/nginx.nix @@ -7,10 +7,14 @@ ({ name, ... }: { enableACME = true; forceSSL = true; + # enable http3 for all hosts + quic = true; + http3 = true; # split up nginx access logs per vhost extraConfig = '' access_log /var/log/nginx/${name}_access.log; error_log /var/log/nginx/${name}_error.log; + add_header Alt-Svc 'h3=":443"; ma=86400'; ''; }) ); @@ -22,6 +26,7 @@ networking.firewall.allowedUDPPorts = [ 443 ]; services.nginx = { enable = true; + package = pkgs.nginxQuic; additionalModules = [ pkgs.nginxModules.pam ]; recommendedProxySettings = true; recommendedGzipSettings = true;