Revert "nginx: disable http3 to prevent wordpress error"

This reverts commit 8606e89c03.
This commit is contained in:
Rouven Seifert 2024-04-16 20:32:29 +02:00
parent ceca1b3798
commit 0d4283f109
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09

View file

@ -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;