feat: add entrypoint

This commit is contained in:
u00lipp
2025-10-23 08:10:45 +02:00
parent 28ed738e33
commit 8492f2cc33
6 changed files with 131 additions and 85 deletions
+24
View File
@@ -0,0 +1,24 @@
; Use a unix socket and ensure nginx can access it
[global]
; (keep global defaults)
[www]
listen = /run/php/php-fpm.sock
listen.owner = www-data
listen.group = nginx
listen.mode = 0660
; Keep default user/group for PHP workers
user = www-data
group = www-data
; Sensible FPM settings
pm = dynamic
pm.max_children = 10
pm.start_servers = 2
pm.min_spare_servers = 2
pm.max_spare_servers = 5
; Clear env for security, but allow PATH
clear_env = yes
env[PATH] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin