From ebc4c6c641d697b4bdb9af94e1ab5171c92b6c4e Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 15 Oct 2023 21:16:26 +0200 Subject: surtr: ... --- hosts/surtr/http/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'hosts/surtr/http/default.nix') diff --git a/hosts/surtr/http/default.nix b/hosts/surtr/http/default.nix index 6b516b00..c70eb8f8 100644 --- a/hosts/surtr/http/default.nix +++ b/hosts/surtr/http/default.nix @@ -24,16 +24,20 @@ access_log syslog:server=unix:/dev/log main; error_log syslog:server=unix:/dev/log info; - client_body_temp_path /run/nginx-client-bodies; + client_body_temp_path /run/nginx-client-bodies 2 2; + proxy_temp_path /run/nginx-proxy-bodies 2 2; ''; additionalModules = with pkgs.nginxModules; [ pam ]; + eventsConfig = '' + worker_connections 2048; + ''; }; systemd.services.nginx = { preStart = lib.mkForce config.services.nginx.preStart; serviceConfig = { SupplementaryGroups = [ "shadow" ]; ExecReload = lib.mkForce "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; - RuntimeDirectory = lib.mkForce [ "nginx" "nginx-client-bodies" ]; + RuntimeDirectory = lib.mkForce [ "nginx" "nginx-client-bodies" "nginx-proxy-bodies" ]; RuntimeDirectoryMode = "0750"; }; }; -- cgit v1.2.3