aboutsummaryrefslogtreecommitdiff
path: root/systems/monitoring-1/status.nix
diff options
context:
space:
mode:
Diffstat (limited to 'systems/monitoring-1/status.nix')
-rw-r--r--systems/monitoring-1/status.nix23
1 files changed, 0 insertions, 23 deletions
diff --git a/systems/monitoring-1/status.nix b/systems/monitoring-1/status.nix
index 8b6615f..e3b4962 100644
--- a/systems/monitoring-1/status.nix
+++ b/systems/monitoring-1/status.nix
@@ -25,34 +25,11 @@
25 recommendedOptimisation = true; 25 recommendedOptimisation = true;
26 recommendedGzipSettings = true; 26 recommendedGzipSettings = true;
27 recommendedProxySettings = true; 27 recommendedProxySettings = true;
28 upstreams."netdata".servers = { "127.0.0.1:19999" = {}; };
29 upstreams."netdata".extraConfig = ''
30 keepalive 64;
31 '';
32 virtualHosts."status.immae.eu" = { 28 virtualHosts."status.immae.eu" = {
33 acmeRoot = config.security.acme.defaults.webroot; 29 acmeRoot = config.security.acme.defaults.webroot;
34 useACMEHost = name; 30 useACMEHost = name;
35 forceSSL = true; 31 forceSSL = true;
36 locations."/".proxyPass = "http://unix:/run/naemon-status/socket.sock:/"; 32 locations."/".proxyPass = "http://unix:/run/naemon-status/socket.sock:/";
37
38 locations."= /netdata".return = "301 /netdata/";
39 locations."~ /netdata/(?<ndpath>.*)".extraConfig = ''
40 proxy_redirect off;
41 proxy_set_header Host $host;
42
43 proxy_set_header X-Forwarded-Host $host;
44 proxy_set_header X-Forwarded-Server $host;
45 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
46 proxy_http_version 1.1;
47 proxy_pass_request_headers on;
48 proxy_set_header Connection "keep-alive";
49 proxy_store off;
50 proxy_pass http://netdata/$ndpath$is_args$args;
51
52 gzip on;
53 gzip_proxied any;
54 gzip_types *;
55 '';
56 }; 33 };
57 }; 34 };
58 security.acme.certs."${name}" = { 35 security.acme.certs."${name}" = {