added the possibility of adding more log_format rows

pull/184/head
Valentin Constantinescu 5 years ago
parent f1153a6b42
commit ffce7dea2e
  1. 2
      defaults/main.yml
  2. 2
      templates/nginx.conf.j2

@ -85,3 +85,5 @@ nginx_log_format: |-
'$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"'
nginx_log_format_extra: ""

@ -31,6 +31,8 @@ http {
log_format main {{ nginx_log_format|indent(23) }};
{{ nginx_log_format_extra }}
access_log {{ nginx_access_log }};
sendfile {{ nginx_sendfile }};