add option to disable nginx access log

This commit is contained in:
louis
2020-12-20 17:30:28 +01:00
parent 8748f3d443
commit dcd4716636
3 changed files with 14 additions and 1 deletions

View File

@ -33,7 +33,11 @@ http {
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
{% if matrix_nginx_proxy_access_log_enabled %}
access_log /var/log/nginx/access.log main;
{% else %}
access_log off;
{% endif %}
sendfile on;
#tcp_nopush on;