From eed80de273583a67b91c6030a20cef58ea93da07 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Wed, 29 Jun 2016 11:03:25 +0200 Subject: [PATCH] make fpm user and group configurable --- rootfs/etc/confd/templates/www.conf.tmpl | 9 +++++++++ 1 file changed, 9 insertions(+) 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: