nginx: Use custom log format
This commit is contained in:
parent
c8bbd563b4
commit
7a6e4e596f
1 changed files with 4 additions and 1 deletions
|
@ -8,7 +8,10 @@ events {
|
||||||
}
|
}
|
||||||
|
|
||||||
http {
|
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 {{ tls_certs }}/{{ inventory_hostname }}.crt;
|
||||||
proxy_ssl_certificate_key {{ tls_private }}/{{ inventory_hostname }}.key;
|
proxy_ssl_certificate_key {{ tls_private }}/{{ inventory_hostname }}.key;
|
||||||
|
|
Loading…
Add table
Reference in a new issue