improve log format

This commit is contained in:
nd 2021-09-01 02:00:18 +02:00
parent 13cb31da67
commit 4d82b39ef9
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
2 changed files with 5 additions and 2 deletions

View file

@ -1,2 +1,4 @@
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
log_format vcombined '$host:$server_port $remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"';
access_log /var/log/nginx/access.log vcombined;
error_log /var/log/nginx/error.log warn;

View file

@ -22,6 +22,7 @@
pkg:
- nginx
- libnginx-mod-http-headers-more-filter
- goaccess
notify:
- delete nginx index.nginx-debian.html
- restart nginx