98 lines
4.3 KiB
Django/Jinja
98 lines
4.3 KiB
Django/Jinja
[{{ item.name }}]
|
|
|
|
listen = {{ item.socket }}
|
|
listen.owner = www-data
|
|
listen.group = www-data
|
|
listen.mode = 0660
|
|
|
|
user = {{ item.user }}
|
|
group = {{ item.group }}
|
|
|
|
|
|
pm = dynamic
|
|
pm.max_children = {{ item.max_children | default('4') }}
|
|
pm.start_servers = {{ item.start_servers | default('1') }}
|
|
pm.min_spare_servers = {{ item.min_spare_servers | default('1') }}
|
|
pm.max_spare_servers = {{ item.max_spare_servers | default('1') }}
|
|
pm.max_requests = {{ item.max_requests | default('0') }}
|
|
pm.status_path = /status
|
|
|
|
{% if item.chdir is defined %}
|
|
chdir = {{ item.chdir }}
|
|
{% endif %}
|
|
{% if item.chroot is defined %}
|
|
chroot = {{ item.chroot }}
|
|
{% endif %}
|
|
|
|
security.limit_extensions = .php
|
|
env[HOSTNAME] = $HOSTNAME
|
|
env[PATH] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
{% if item.tmpdir is defined %}
|
|
env[TMP] = {{ item.tmpdir }}
|
|
env[TMPDIR] = {{ item.tmpdir }}
|
|
env[TEMP] = {{ item.tmpdir }}
|
|
{% endif %}
|
|
|
|
php_flag[asp_tags] = {{ item.asp_tags | default('Off') }}
|
|
php_flag[display_errors] = {{ item.display_errors | default('Off') }}
|
|
php_flag[display_startup_errors] = {{ item.display_startup_errors | default('Off') }}
|
|
php_flag[session.use_cookies] = {{ item.session_use_cookies | default('1') }}
|
|
php_flag[short_open_tag] = {{ item.short_open_tag | default('On') }}
|
|
php_flag[html_errors] = {{ item.html_errors | default('On') }}
|
|
php_flag[log_errors] = {{ item.log_errors | default('On') }}
|
|
php_flag[mail.add_x_header] = {{ item.mail_add_x_header | default('Off') }}
|
|
|
|
php_value[auto_append_file] = {{ item.auto_append_file | default('') }}
|
|
php_value[auto_prepend_file] = {{ item.auto_prepend_file | default('') }}
|
|
php_value[default_charset] = {{ item.default_charset | default('UTF-8') }}
|
|
php_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE
|
|
php_value[include_path] = ".:/usr/share/php/:/usr/share/php5/"
|
|
php_value[log_errors_max_len] = 1024
|
|
php_value[max_execution_time] = {{ item.max_execution_time | default('30') }}
|
|
php_value[session.auto_start] = 0
|
|
php_value[session.cookie_domain] =
|
|
php_value[session.cookie_lifetime] = 0
|
|
php_value[session.cookie_path] = /
|
|
php_value[session.name] = DRYCOOKIE_MIAM
|
|
php_value[session.serialize_handler] = php
|
|
php_value[upload_max_filesize] = {{ item.upload_max_filesize | default('32')}}
|
|
|
|
php_admin_flag[allow_url_fopen] = {{ item.allow_url_fopen | default('Off') }}
|
|
php_admin_flag[allow_url_include] = {{ item.allow_url_include | default('Off') }}
|
|
php_admin_flag[enable_dl] = Off
|
|
php_admin_flag[expose_php] = Off
|
|
php_admin_flag[file_uploads] = On
|
|
php_admin_flag[ignore_repeated_errors] = Off
|
|
php_admin_flag[ignore_repeated_source] = Off
|
|
php_admin_flag[log_errors] = On
|
|
php_admin_flag[register_argc_argv] = Off
|
|
php_admin_flag[report_memleaks] = On
|
|
|
|
php_admin_value[disable_functions] = {{ item.disable_functions | default('pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,exec,passthru,popen,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,system') }}
|
|
php_admin_value[max_input_time] = {{ item.max_input_time | default('60') }}
|
|
php_admin_value[memory_limit] = {{ item.memory_limit | default('128M') }}
|
|
php_admin_value[output_buffering] = {{ item.output_buffering | default('4096') }}
|
|
php_admin_value[post_max_size] = {{ item.post_max_size | default('16M')}}
|
|
php_admin_value[precision] = 14
|
|
;php_admin_value[sendmail_path] = "/usr/sbin/sendmail -t -i -f contact@dryusdan.fr"
|
|
;php_admin_value[session.gc_divisor] = 1000
|
|
;php_admin_value[session.gc_probability] = 0
|
|
php_admin_value[variables_order] = "EGPCS"
|
|
php_admin_value[opcache.restrict_api] = "{{ item.dir }}"
|
|
|
|
{% if item.openbasedir is defined %}
|
|
php_admin_value[open_basedir] = "{{ item.openbasedir }}:/usr/share/php:/usr/share/php5:/tmp"
|
|
{% endif %}
|
|
|
|
{% if item.extra_admin_flag is defined %}
|
|
{% for admin_flag in item.extra_admin_flag %}
|
|
php_admin_flag[{{admin_flag.name}}] = "{{ admin_flag.value}}"
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% if item.extra_admin_value is defined %}
|
|
{% for admin_value in item.extra_admin_value %}
|
|
php_admin_value[{{admin_value.name}}] = "{{ admin_value.value}}"
|
|
{% endfor %}
|
|
{% endif %}
|