diff options
Diffstat (limited to 'host/Rory-nginx/services/nginx/nginx.nix')
-rwxr-xr-x | host/Rory-nginx/services/nginx/nginx.nix | 2 |
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; [ |