summary refs log tree commit diff
path: root/host/Rory-nginx/services/nginx
diff options
context:
space:
mode:
authorRory&::Emma <root@rory.gay>2024-05-05 23:31:29 +0000
committerRory& <root@rory.gay>2024-07-04 14:45:02 +0200
commit90da542c80a29f9475e59e8a5b2819d193452959 (patch)
tree48772e56fa763c64ac62dabfabe91b7c064ef988 /host/Rory-nginx/services/nginx
parentExplicitly enable resolvconf (diff)
downloadRory-Open-Architecture-90da542c80a29f9475e59e8a5b2819d193452959.tar.xz
Server updates
Diffstat (limited to 'host/Rory-nginx/services/nginx')
-rwxr-xr-xhost/Rory-nginx/services/nginx/nginx.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/host/Rory-nginx/services/nginx/nginx.nix b/host/Rory-nginx/services/nginx/nginx.nix
index 74a99d2..91340c7 100755
--- a/host/Rory-nginx/services/nginx/nginx.nix
+++ b/host/Rory-nginx/services/nginx/nginx.nix
@@ -22,6 +22,8 @@
       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"';
+        access_log /var/log/nginx/access.log combined_vhosts;
       '';
       upstreams = import ./matrix-upstreams.nix;
       additionalModules = with pkgs.nginxModules; [