nginx: Use custom log format

This commit is contained in:
Timo Makinen 2025-01-23 05:53:44 +00:00
parent c8bbd563b4
commit 7a6e4e596f

View file

@ -8,7 +8,10 @@ events {
}
http {
access_log {{ nginx_logdir }}/access.log combined;
log_format custom '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" ($request_time)';
access_log {{ nginx_logdir }}/access.log custom;
proxy_ssl_certificate {{ tls_certs }}/{{ inventory_hostname }}.crt;
proxy_ssl_certificate_key {{ tls_private }}/{{ inventory_hostname }}.key;