JGoutin / ansible_home

A collection of Ansible roles for home free software self-hosting.
https://galaxy.ansible.com/jgoutin/home
GNU General Public License v3.0
31 stars 6 forks source link

nginx: Logs in journald #48

Closed JGoutin closed 1 year ago

JGoutin commented 2 years ago

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;