diff --git a/README.md b/README.md index ef8c7cc..d8f45db 100644 --- a/README.md +++ b/README.md @@ -130,7 +130,7 @@ Extra lines to be inserted in the top of `nginx.conf`. The value should be defin See the template in `templates/nginx.conf.j2` for more details on the placement. - nginx_log_format: | + nginx_log_format: |- '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"' diff --git a/defaults/main.yml b/defaults/main.yml index 1a14c16..cbce58a 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -81,7 +81,7 @@ nginx_upstreams: [] # "srv3.example.com" # } -nginx_log_format: | +nginx_log_format: |- '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'