Skip to content

Commit

Permalink
Change user for nginx and php processes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislrobinson committed Sep 18, 2024
1 parent 5c8b186 commit ef01b73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions etc/supervisor/conf.d/logging.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions etc/supervisor/conf.d/web.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ef01b73

Please sign in to comment.