diff --git a/rootfs/etc/confd/templates/www.conf.tmpl b/rootfs/etc/confd/templates/www.conf.tmpl index 891981e..6244798 100644 --- a/rootfs/etc/confd/templates/www.conf.tmpl +++ b/rootfs/etc/confd/templates/www.conf.tmpl @@ -20,8 +20,17 @@ ; Unix user/group of processes ; Note: The user is mandatory. If the group is not set, the default user's group ; will be used. +{{if (getenv "FPMUSER")}} +user = {{getenv "FPMUSER"}} +{{else}} user = nobody +{{end}} + +{{if (getenv "FPMGROUP")}} +group = {{getenv "FPMGROUP"}} +{{else}} group = nobody +{{end}} ; The address on which to accept FastCGI requests. ; Valid syntaxes are: