Use nginx user instead of www-data on Debian 9
Using www-data was a temporary measure while I was waiting for the official nginx.org packages to be released for Debian 9 and we had to use Debian's own nginx package.
This commit is contained in:
@ -1,10 +1,6 @@
|
||||
|
||||
# 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;
|
||||
{% endif %}
|
||||
|
||||
# Sets the worker threads to the number of CPU cores available in the system for best performance.
|
||||
# Should be > the number of CPU cores.
|
||||
|
Reference in New Issue
Block a user