summaryrefslogtreecommitdiff
path: root/hosts/surtr/http/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/surtr/http/default.nix')
-rw-r--r--hosts/surtr/http/default.nix8
1 files changed, 6 insertions, 2 deletions
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 @@
24 access_log syslog:server=unix:/dev/log main; 24 access_log syslog:server=unix:/dev/log main;
25 error_log syslog:server=unix:/dev/log info; 25 error_log syslog:server=unix:/dev/log info;
26 26
27 client_body_temp_path /run/nginx-client-bodies; 27 client_body_temp_path /run/nginx-client-bodies 2 2;
28 proxy_temp_path /run/nginx-proxy-bodies 2 2;
28 ''; 29 '';
29 additionalModules = with pkgs.nginxModules; [ pam ]; 30 additionalModules = with pkgs.nginxModules; [ pam ];
31 eventsConfig = ''
32 worker_connections 2048;
33 '';
30 }; 34 };
31 systemd.services.nginx = { 35 systemd.services.nginx = {
32 preStart = lib.mkForce config.services.nginx.preStart; 36 preStart = lib.mkForce config.services.nginx.preStart;
33 serviceConfig = { 37 serviceConfig = {
34 SupplementaryGroups = [ "shadow" ]; 38 SupplementaryGroups = [ "shadow" ];
35 ExecReload = lib.mkForce "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; 39 ExecReload = lib.mkForce "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
36 RuntimeDirectory = lib.mkForce [ "nginx" "nginx-client-bodies" ]; 40 RuntimeDirectory = lib.mkForce [ "nginx" "nginx-client-bodies" "nginx-proxy-bodies" ];
37 RuntimeDirectoryMode = "0750"; 41 RuntimeDirectoryMode = "0750";
38 }; 42 };
39 }; 43 };