nginx: enable http3 #89

Merged
rouven0 merged 1 commit from http3 into main 2024-04-04 14:09:15 +02:00

View file

@ -7,10 +7,14 @@
({ name, ... }: {
enableACME = true;
forceSSL = true;
# enable http3 for all hosts
quic = true;
tanneberger commented 2024-04-03 18:36:20 +02:00 (Migrated from github.com)
Review

based

based
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';
'';
})
);
@ -18,10 +22,12 @@
};
config = {
networking.firewall.allowedTCPPorts = [ 443 80 ];
networking.firewall.allowedTCPPorts = [ 80 443 ];
networking.firewall.allowedUDPPorts = [ 443 ];
services.nginx = {
additionalModules = [ pkgs.nginxModules.pam ];
enable = true;
package = pkgs.nginxQuic;
additionalModules = [ pkgs.nginxModules.pam ];
recommendedProxySettings = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;