roles/nginx: Update nginx.conf.j2

This is to accomodate Debian's 9 nginx package, as it provides a
different system user/group than nginx.org's packages.
This commit is contained in:
Alan Orth 2017-01-30 15:45:50 +02:00
parent 6de385021d
commit e13ef95f70
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -1,6 +1,10 @@
# Run as a unique, less privileged user for security reasons. # Run as a unique, less privileged user for security reasons.
user nginx; {% if ansible_distribution == 'Debian' and ansible_distribution_major_version | version_compare('9', '==') %}
user www-data;
{% else %}
user nginx;
{% endif %}
# Sets the worker threads to the number of CPU cores available in the system for best performance. # Sets the worker threads to the number of CPU cores available in the system for best performance.
# Should be > the number of CPU cores. # Should be > the number of CPU cores.