From ddeb253c1e0033205c012f04f284a70a21ebfc4c Mon Sep 17 00:00:00 2001 From: Luka Vandervelden Date: Sat, 4 Jan 2020 16:16:13 +0100 Subject: [PATCH] =?UTF-8?q?Updates=20nginx=E2=80=99=20support.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/nginx.spec | 1 + templates/nginx.conf.j2 | 2 ++ 2 files changed, 3 insertions(+) diff --git a/services/nginx.spec b/services/nginx.spec index e663ce8..6eb31aa 100644 --- a/services/nginx.spec +++ b/services/nginx.spec @@ -3,6 +3,7 @@ consumes: http? provides: www, http ports: http=80, https=443 reload-command: kill -HUP ${SERVICE_PID} +user: root %configuration nginx.conf diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2 index 12138da..de007c4 100644 --- a/templates/nginx.conf.j2 +++ b/templates/nginx.conf.j2 @@ -2,6 +2,8 @@ # worker_processes 1; daemon off; +user {{ service.user }}; + pid {{ service.root }}/pid; worker_rlimit_nofile 1024;