From b8a5bd18a91ed2ac9390009499cbef72fa273dc0 Mon Sep 17 00:00:00 2001 From: ibizaman Date: Fri, 17 Nov 2023 22:52:14 -0800 Subject: [PATCH] add allowed tcp ports for nginx --- modules/nginx.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/nginx.nix b/modules/nginx.nix index ff4bde0..d77cc95 100644 --- a/modules/nginx.nix +++ b/modules/nginx.nix @@ -66,6 +66,8 @@ in }; config = { + networking.firewall.allowedTCPPorts = [ 80 443 ]; + services.nginx.enable = true; services.nginx.logError = lib.mkIf cfg.debugLog "stderr warn"; services.nginx.appendHttpConfig = lib.mkIf cfg.accessLog ''