allow image to run as any non-root user/group, fixes #10

This commit is contained in:
El RIDO 2021-04-28 18:29:58 +02:00
parent 7326e27e8c
commit 0928070a04
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
3 changed files with 2 additions and 9 deletions

View file

@ -1,6 +1,3 @@
# Run as a unique, less privileged user for security reasons.
user nobody www-data;
# Sets the worker threads to the number of CPU cores available in the system for best performance.
# Should be > the number of CPU cores.
# Maximum number of connections = worker_processes * worker_connections

View file

@ -3,11 +3,7 @@ daemonize = no
error_log = /dev/stderr
[www]
user = nobody
group = www-data
listen = /run/php-fpm.sock
listen.owner = nobody
listen.group = www-data
access.log = /dev/null
clear_env = On
pm = dynamic