summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-08-16 07:43:23 +0200
committerRory& <root@rory.gay>2024-08-16 07:43:23 +0200
commit721764ccd2d473e236737ba00d22a4e20e0fc945 (patch)
treea5f79bc8eb368149ef888a62099d3661f8de1e67
parentSliding sync on workers (diff)
downloadRory-Open-Architecture-721764ccd2d473e236737ba00d22a4e20e0fc945.tar.xz
Log nginx upstreams
-rwxr-xr-xhost/Rory-nginx/services/nginx/nginx.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/Rory-nginx/services/nginx/nginx.nix b/host/Rory-nginx/services/nginx/nginx.nix
index 4e36577..aee8378 100755
--- a/host/Rory-nginx/services/nginx/nginx.nix
+++ b/host/Rory-nginx/services/nginx/nginx.nix
@@ -33,7 +33,7 @@ in
       appendHttpConfig = ''
         #sendfile on;
         disable_symlinks off;
-        log_format combined_vhosts '$remote_addr - $remote_user [$time_local] {host="$host",server_name="$server_name"} "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"';
+        log_format combined_vhosts '$remote_addr - $remote_user [$time_local] {host="$host",server_name="$server_name",upstream=$upstream_addr} "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"';
         access_log /var/log/nginx/access.log combined_vhosts;
       '';
       additionalModules = with pkgs.nginxModules; [ moreheaders ];