From b319b02f0793aa863ac27426b761a6cfd7c532c6 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Fri, 5 Jul 2024 18:52:38 +0200 Subject: [PATCH] fix: remove custom logging format for Gerrit This way, we get picked up by the LGTM stack exporter machinery. Signed-off-by: Raito Bezarius --- services/gerrit/www.nix | 8 -------- 1 file changed, 8 deletions(-) diff --git a/services/gerrit/www.nix b/services/gerrit/www.nix index eaafabc..815e582 100644 --- a/services/gerrit/www.nix +++ b/services/gerrit/www.nix @@ -12,12 +12,6 @@ in add_header Permissions-Policy "interest-cohort=()"; ''; recommendedProxySettings = false; - commonHttpConfig = '' - log_format upstream_time '$remote_addr - $remote_user [$time_local] ' - '"$request" $status $body_bytes_sent ' - '"$http_referer" "$http_user_agent"' - 'rt=$request_time uct="$upstream_connect_time" uht="$upstream_header_time" urt="$upstream_response_time"'; - ''; }; services.nginx.virtualHosts.gerrit = { serverName = builtins.head cfg.domains; @@ -25,8 +19,6 @@ in enableACME = true; forceSSL = true; extraConfig = '' - access_log /var/log/nginx/gerrit-access.log upstream_time; - location / { proxy_pass http://localhost:4778; proxy_set_header X-Forwarded-For $remote_addr;