bundles/nginx: enable creating logs for debugging purposes
This commit is contained in:
parent
553ed05ba2
commit
b01dcb0ff9
2 changed files with 6 additions and 3 deletions
|
@ -54,13 +54,16 @@ server {
|
|||
resolver 8.8.8.8 8.8.4.4 valid=300s;
|
||||
resolver_timeout 5s;
|
||||
|
||||
% if create_access_log:
|
||||
% if create_logs:
|
||||
access_log /var/log/nginx/access-${vhost}.log gdpr;
|
||||
error_log /var/log/nginx/error-${vhost}.log;
|
||||
% else:
|
||||
# regular access_log is disabled
|
||||
# error_log is disabled
|
||||
% endif
|
||||
% if create_timing_log:
|
||||
access_log /var/log/nginx-timing/${vhost}.log anon_timing;
|
||||
% endif
|
||||
# error_log is disabled globally
|
||||
|
||||
% if max_body_size:
|
||||
client_max_body_size ${max_body_size};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue