summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/shack/influx.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-09-13 13:56:58 +0200
committermakefu <github@syntax-fehler.de>2020-09-13 13:56:58 +0200
commit306653db954b41759fccfbd8b9d42ff712fe64f0 (patch)
tree229ad8280ef726a1b14653646d7cf2c9d201d341 /krebs/2configs/shack/influx.nix
parent341d11575de0c8731e5ad474f95bd146a9c63267 (diff)
wolf.r: more relevant nginx data
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}/";
};