Debian Codegraph @

ansible_collections/community/zabbix/roles/zabbix_web/templates/php-fpm.conf.j2

raw
1 [zabbix]
2 user = {{ zabbix_php_fpm_conf_user }}
3 group = {{ zabbix_php_fpm_conf_group }}
4
5 listen = {{ zabbix_php_fpm_listen }}
6 {% if zabbix_php_fpm_conf_listen and ansible_facts['os_family'] not in ['Debian', 'Suse'] %}
7 listen.acl_users = {{ zabbix_php_fpm_conf_user }}
8 {% endif %}
9 listen.owner = {{ zabbix_php_fpm_conf_user }}
10 listen.group = {{ _nginx_group if zabbix_web_http_server=='nginx' else _apache_group }}
11 listen.mode = 0660
12 listen.allowed_clients = 127.0.0.1
13
14 pm = {{ zabbix_web_php_fpm_mode }}
15 pm.max_children = {{ zabbix_web_php_fpm_max_childs }}
16 pm.start_servers = {{ zabbix_web_php_fpm_start_servers }}
17 pm.min_spare_servers = {{ zabbix_web_php_fpm_min_spare_servers }}
18 pm.max_spare_servers = {{ zabbix_web_php_fpm_max_spare_servers }}
19
20 php_value[session.save_handler] = files
21 php_value[session.save_path] = {{ zabbix_php_fpm_session }}
22
23 php_value[max_execution_time] = {{ zabbix_web_max_execution_time | default('300') }}
24 php_value[memory_limit] = {{ zabbix_web_memory_limit | default('128M') }}
25 php_value[post_max_size] = {{ zabbix_web_post_max_size | default('16M') }}
26 php_value[upload_max_filesize] = {{ zabbix_web_upload_max_filesize | default('2M') }}
27 php_value[max_input_time] = {{ zabbix_web_max_input_time | default('300') }}
28 php_value[max_input_vars] = {{ zabbix_web_max_input_vars | default('10000') }}
29 php_value[date.timezone] = {{ zabbix_timezone }}
30
31
32 {% if zabbix_web_custom_php | default('') | length > 0 %}
33 {{ zabbix_web_custom_php }}
34 {% endif %}