diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2023-10-15 21:16:26 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2023-10-15 21:16:26 +0200 |
commit | ebc4c6c641d697b4bdb9af94e1ab5171c92b6c4e (patch) | |
tree | ff71b317201b140afbc87512ab3a96149354b0c3 /hosts/surtr/http | |
parent | 3559a78338e5eaf502d5b49f19e275aa955f1334 (diff) | |
download | nixos-ebc4c6c641d697b4bdb9af94e1ab5171c92b6c4e.tar nixos-ebc4c6c641d697b4bdb9af94e1ab5171c92b6c4e.tar.gz nixos-ebc4c6c641d697b4bdb9af94e1ab5171c92b6c4e.tar.bz2 nixos-ebc4c6c641d697b4bdb9af94e1ab5171c92b6c4e.tar.xz nixos-ebc4c6c641d697b4bdb9af94e1ab5171c92b6c4e.zip |
surtr: ...
Diffstat (limited to 'hosts/surtr/http')
-rw-r--r-- | hosts/surtr/http/default.nix | 8 |
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 | }; |