fix: remove custom logging format for Gerrit

This way, we get picked up by the LGTM stack exporter machinery.

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
raito 2024-07-05 18:52:38 +02:00
parent 75f779716d
commit b319b02f07

View file

@ -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;