summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack/influx.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2020-09-15 20:16:44 +0200
committerlassulus <lassulus@lassul.us>2020-09-15 20:16:44 +0200
commit624deaddd03101890d2974fc9340a26c00051bf3 (patch)
tree32b0f765be65385f092dff92ae09285a29a4845e /krebs/2configs/shack/influx.nix
parent91b7a2a58490a59d6090870a9db9eca8d11d9ab4 (diff)
parent57e6296ac4ca6b600f9e57b2c347f413096d09ed (diff)
Merge remote-tracking branch 'gum/master' into HEAD
Diffstat (limited to 'krebs/2configs/shack/influx.nix')
-rw-r--r--krebs/2configs/shack/influx.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/krebs/2configs/shack/influx.nix b/krebs/2configs/shack/influx.nix
index 92cb24bf3..93d83a59b 100644
--- a/krebs/2configs/shack/influx.nix
+++ b/krebs/2configs/shack/influx.nix
@@ -8,6 +8,11 @@ in
networking.firewall.allowedTCPPorts = [ port ]; # for legacy applications
networking.firewall.allowedUDPPorts = [ collectd-port ];
services.nginx.virtualHosts."influx.shack" = {
+ # Disable constant GET request logging.
+ # $loggable map is defined in 1/wolf
+ extraConfig = ''
+ access_log syslog:server=unix:/dev/log combined if=$loggable;
+ '';
locations."/" = {
proxyPass = "http://localhost:${toString port}/";
};