Initial commit
This commit is contained in:
28
api-v1/config/www.conf
Normal file
28
api-v1/config/www.conf
Normal file
@@ -0,0 +1,28 @@
|
||||
; Пул процессов для API v1
|
||||
[www]
|
||||
user = www
|
||||
group = www
|
||||
|
||||
listen = 0.0.0.0:9000
|
||||
listen.mode = 0660
|
||||
|
||||
pm = dynamic
|
||||
pm.max_children = 10
|
||||
pm.start_servers = 2
|
||||
pm.min_spare_servers = 1
|
||||
pm.max_spare_servers = 5
|
||||
|
||||
; Важно для доступа к env переменным из PHP
|
||||
clear_env = no
|
||||
|
||||
catch_workers_output = yes
|
||||
php_flag[display_errors] = off
|
||||
php_admin_value[error_log] = /var/log/php-fpm/v1-error.log
|
||||
php_admin_flag[log_errors] = on
|
||||
|
||||
; Метрики и пинг
|
||||
pm.status_path = /status
|
||||
ping.path = /ping
|
||||
ping.response = pong
|
||||
|
||||
security.limit_extensions = .php .php3 .php4 .php5 .php7 .php8
|
||||
Reference in New Issue
Block a user