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:
parent
6de385021d
commit
e13ef95f70
@ -1,6 +1,10 @@
|
|||||||
|
|
||||||
# Run as a unique, less privileged user for security reasons.
|
# Run as a unique, less privileged user for security reasons.
|
||||||
|
{% if ansible_distribution == 'Debian' and ansible_distribution_major_version | version_compare('9', '==') %}
|
||||||
|
user www-data;
|
||||||
|
{% else %}
|
||||||
user nginx;
|
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.
|
||||||
|
Loading…
Reference in New Issue
Block a user