Closed JGoutin closed 1 year ago
Ensure the service outputs logs in "journald" instead of /var/log/nextclod/error.log.
/var/log/nextclod/error.log
And makes access logs optional also in journald (And disabled by default).
In "http" section: access_log {% if nginx_access_logs %}syslog:server=unix:/dev/log{% else %}off{% endif %};
access_log {% if nginx_access_logs %}syslog:server=unix:/dev/log{% else %}off{% endif %};
In top level section: error_log stderr crit;
error_log stderr crit;
Ensure the service outputs logs in "journald" instead of
/var/log/nextclod/error.log
.And makes access logs optional also in journald (And disabled by default).
In "http" section:
access_log {% if nginx_access_logs %}syslog:server=unix:/dev/log{% else %}off{% endif %};
In top level section:
error_log stderr crit;