From 2a53c6b42041fd50a4b7e5f5eb340c7498464c77 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Thu, 13 Mar 2025 16:28:05 +0100 Subject: [PATCH] tsuki/nginx: set LimitNOFILE --- hosts/tsuki/services/nginx/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/hosts/tsuki/services/nginx/default.nix b/hosts/tsuki/services/nginx/default.nix index 6795809..90a7435 100644 --- a/hosts/tsuki/services/nginx/default.nix +++ b/hosts/tsuki/services/nginx/default.nix @@ -220,9 +220,13 @@ ''; }; - # NOTE: This is needed for nginx to be able - # to connect to sockets in /run - systemd.services.nginx.serviceConfig.ProtectHome = false; + systemd.services.nginx.serviceConfig = { + LimitNOFILE = 65536; + + # NOTE: This is needed for nginx to be able + # to connect to sockets in /run + ProtectHome = false; + }; networking.firewall.allowedTCPPorts = [ 80