Skip to content
Snippets Groups Projects

Log access and error logs to journald in stretch

Closed Robin Sonnabend requested to merge nginx-journal into master
Files
2
@@ -64,8 +64,13 @@ http {
@@ -64,8 +64,13 @@ http {
# Logging Settings
# Logging Settings
##
##
 
{% if ansible_distribution_major_version|version_compare("9", ">=") %}
 
access_log syslog:server=unix:/dev/log;
 
error_log syslog:server=unix:/dev/log;
 
{% else %}
access_log /var/log/nginx/proxy-access.log;
access_log /var/log/nginx/proxy-access.log;
error_log /var/log/nginx/proxy-error.log;
error_log /var/log/nginx/proxy-error.log;
 
{% endif %}
##
##
# Gzip Settings
# Gzip Settings
Loading