From 004a8d51fe9c5bfb0eba0d6e61c66fc14e361bd8 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 26 Jun 2022 16:25:06 -0700 Subject: fix(modules/cgit): don't log blackbox exporter requests Change-Id: I60d1d552d028a4b2db2e0c62c1d2d580a4e58e1a Reviewed-on: https://cl.fcuny.net/c/world/+/562 Reviewed-by: Franck Cuny Tested-by: CI --- modules/services/cgit/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/services/cgit/default.nix b/modules/services/cgit/default.nix index 704d0dc..2c4802f 100644 --- a/modules/services/cgit/default.nix +++ b/modules/services/cgit/default.nix @@ -121,6 +121,9 @@ in fastcgi_param HTTP_HOST $server_name; fastcgi_param QUERY_STRING $args; fastcgi_pass unix:${config.services.fcgiwrap.socketAddress}; + if ($http_user_agent ~* "(Blackbox Exporter)" ) { + access_log off; + } ''; }; }; -- cgit 1.4.1