Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
itslychee committed Jan 2, 2025
1 parent 7671201 commit 9f5f6c2
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions modules/security/smart-firewall.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@ let
inherit (config) services;
in
{
config =
mkIf services.caddy.enable
|| services.nginx.enable {
networking.firewall = {
allowedTCPPorts = [
80
443
];
allowedUDPPorts = [ 443 ]; # QUIC
};
config = mkIf (services.caddy.enable || services.nginx.enable) {
networking.firewall = {
allowedTCPPorts = [
80
443
];
allowedUDPPorts = [ 443 ]; # QUIC
};
};

}

0 comments on commit 9f5f6c2

Please sign in to comment.