about summary refs log tree commit diff
path: root/modules/services
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-06-26 16:25:06 -0700
committerFranck Cuny <franck@fcuny.net>2022-06-26 16:26:10 -0700
commit004a8d51fe9c5bfb0eba0d6e61c66fc14e361bd8 (patch)
tree4582ddc90e72978e9dcd4717256e39b609e06803 /modules/services
parentfix(tools/gerrit-hook): replace `.' with `-dot-' in project's name (diff)
downloadworld-004a8d51fe9c5bfb0eba0d6e61c66fc14e361bd8.tar.gz
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 <franck@fcuny.net>
Tested-by: CI
Diffstat (limited to 'modules/services')
-rw-r--r--modules/services/cgit/default.nix3
1 files changed, 3 insertions, 0 deletions
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;
+          }
         '';
       };
     };