22
0
mirror of https://github.com/SuperSandro2000/nixos-modules.git synced 2024-05-29 20:39:23 +02:00

nginx: open quic port if enabled

This commit is contained in:
Sandro - 2023-12-29 18:18:01 +01:00
parent fac54f516c
commit bf52605007
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -105,7 +105,10 @@ in
"net.ipv4.tcp_fastopen" = 3;
};
networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [ 80 443 ];
networking.firewall = lib.mkIf cfg.openFirewall {
allowedTCPPorts = [ 80 443 ];
allowedUDPPorts = lib.mkIf cfg.quic.enable [ 443 ];
};
nixpkgs.overlays = lib.mkIf cfg.tcpFastOpen [
(final: prev: