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:
parent
fac54f516c
commit
bf52605007
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user