1
0
Fork 0

add allowed tcp ports for nginx

This commit is contained in:
ibizaman 2023-11-17 22:52:14 -08:00
parent 64b88c0cc1
commit b8a5bd18a9

View file

@ -66,6 +66,8 @@ in
}; };
config = { config = {
networking.firewall.allowedTCPPorts = [ 80 443 ];
services.nginx.enable = true; services.nginx.enable = true;
services.nginx.logError = lib.mkIf cfg.debugLog "stderr warn"; services.nginx.logError = lib.mkIf cfg.debugLog "stderr warn";
services.nginx.appendHttpConfig = lib.mkIf cfg.accessLog '' services.nginx.appendHttpConfig = lib.mkIf cfg.accessLog ''