summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-04-09 00:23:17 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2022-04-09 00:23:17 +0200
commit14e731f40b91976976cc8b72f267bc90b0f07521 (patch)
tree94a8791364dd0868c6b4fc83b67b184b0d3dbdb2 /hosts
parentd0afb2f7580846a829f2e7f548c42f5ba1ad0b9e (diff)
downloadnixos-14e731f40b91976976cc8b72f267bc90b0f07521.tar
nixos-14e731f40b91976976cc8b72f267bc90b0f07521.tar.gz
nixos-14e731f40b91976976cc8b72f267bc90b0f07521.tar.bz2
nixos-14e731f40b91976976cc8b72f267bc90b0f07521.tar.xz
nixos-14e731f40b91976976cc8b72f267bc90b0f07521.zip
vidhar: ...
Diffstat (limited to 'hosts')
-rw-r--r--hosts/vidhar/default.nix5
-rw-r--r--hosts/vidhar/prometheus/default.nix2
2 files changed, 7 insertions, 0 deletions
diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix
index 69ca1403..d8f9cdb4 100644
--- a/hosts/vidhar/default.nix
+++ b/hosts/vidhar/default.nix
@@ -131,6 +131,8 @@
131 131
132 access_log syslog:server=unix:/dev/log main; 132 access_log syslog:server=unix:/dev/log main;
133 error_log syslog:server=unix:/dev/log info; 133 error_log syslog:server=unix:/dev/log info;
134
135 client_body_temp_path /run/nginx-client-bodies;
134 ''; 136 '';
135 upstreams.grafana = { 137 upstreams.grafana = {
136 servers = { "unix:${config.services.grafana.socket}" = {}; }; 138 servers = { "unix:${config.services.grafana.socket}" = {}; };
@@ -175,6 +177,9 @@
175 serviceConfig = { 177 serviceConfig = {
176 ExecReload = lib.mkForce "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; 178 ExecReload = lib.mkForce "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
177 LoadCredential = [ "selfsigned.key:${config.sops.secrets."selfsigned.key".path}" ]; 179 LoadCredential = [ "selfsigned.key:${config.sops.secrets."selfsigned.key".path}" ];
180
181 RuntimeDirectory = lib.mkForce [ "nginx" "nginx-client-bodies" ];
182 RuntimeDirectoryMode = "0750";
178 }; 183 };
179 }; 184 };
180 185
diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix
index 4a666e95..8d7b0fe8 100644
--- a/hosts/vidhar/prometheus/default.nix
+++ b/hosts/vidhar/prometheus/default.nix
@@ -400,6 +400,8 @@ in {
400 ssl_client_certificate ${./ca/ca.crt}; 400 ssl_client_certificate ${./ca/ca.crt};
401 ssl_trusted_certificate ${./ca/ca.crt}; 401 ssl_trusted_certificate ${./ca/ca.crt};
402 ssl_verify_client on; 402 ssl_verify_client on;
403
404 client_max_body_size 0;
403 ''; 405 '';
404 locations."/" = { 406 locations."/" = {
405 proxyPass = "http://prometheus/"; 407 proxyPass = "http://prometheus/";