From ef01b730be5863ff9d2c912aa62a0507590a9bbd Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 18 Sep 2024 16:48:08 +0100 Subject: [PATCH] Change user for nginx and php processes --- etc/supervisor/conf.d/logging.conf.tmpl | 1 + etc/supervisor/conf.d/web.conf.tmpl | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/etc/supervisor/conf.d/logging.conf.tmpl b/etc/supervisor/conf.d/logging.conf.tmpl index 05c6b57..0961326 100644 --- a/etc/supervisor/conf.d/logging.conf.tmpl +++ b/etc/supervisor/conf.d/logging.conf.tmpl @@ -19,6 +19,7 @@ environment=VECTOR_MARKER="{{ getenv "VECTOR_MARKER" "" }}",VECTOR_COLOR=never [eventlistener:rotate_logs] command=/etc/supervisor/rotate-logs +user=vector events=TICK_60 autorestart=true buffer_size=1 diff --git a/etc/supervisor/conf.d/web.conf.tmpl b/etc/supervisor/conf.d/web.conf.tmpl index fa33554..e4dec49 100644 --- a/etc/supervisor/conf.d/web.conf.tmpl +++ b/etc/supervisor/conf.d/web.conf.tmpl @@ -3,6 +3,8 @@ command=/usr/sbin/nginx -g "daemon off;" autostart={{ getenv "SVC_NGINX_ENABLED" "false" | ternary "true" "false" }} autorestart=true exitcodes=0 +user=dp_app +group=dp_app startsecs=1 startretries=3 redirect_stderr=true @@ -22,6 +24,8 @@ command=/usr/sbin/php-fpm8.3 -F autostart={{ getenv "SVC_PHP_FPM_ENABLED" "false" | ternary "true" "false" }} autorestart=true exitcodes=0 +user=dp_app +group=dp_app startsecs=1 startretries=3 redirect_stderr=true