make fpm user and group configurable

This commit is contained in:
Sebastian Hugentobler 2016-06-29 11:03:25 +02:00
parent c914940180
commit eed80de273

View File

@ -20,8 +20,17 @@
; Unix user/group of processes ; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user's group ; Note: The user is mandatory. If the group is not set, the default user's group
; will be used. ; will be used.
{{if (getenv "FPMUSER")}}
user = {{getenv "FPMUSER"}}
{{else}}
user = nobody user = nobody
{{end}}
{{if (getenv "FPMGROUP")}}
group = {{getenv "FPMGROUP"}}
{{else}}
group = nobody group = nobody
{{end}}
; The address on which to accept FastCGI requests. ; The address on which to accept FastCGI requests.
; Valid syntaxes are: ; Valid syntaxes are: