Enable configuration via variables
This commit is contained in:
parent
61299bb763
commit
90de9d5861
6 changed files with 39 additions and 71 deletions
7
templates/php-cli.ini.j2
Normal file
7
templates/php-cli.ini.j2
Normal file
|
@ -0,0 +1,7 @@
|
|||
; Ansible managed
|
||||
|
||||
{% if php_cli_config is defined %}
|
||||
{% for key, value in php_cli_config.items() %}
|
||||
{{ key }} = {{ value }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
|
@ -1,20 +0,0 @@
|
|||
; Ansible managed
|
||||
|
||||
upload_max_filesize = {{ php.upload_max_filesize | default ('15M') }}
|
||||
post_max_size = {{ php.post_max_size | default ('15M') }}
|
||||
memory_limit = {{ php.memory_limit | default ('192M') }}
|
||||
max_execution_time = {{ php.max_execution_time | default ('300') }}
|
||||
|
||||
date.timezone = {{ php.date_timezone | default ('Europe/Berlin') }}
|
||||
default_charset = "{{ php.default_charset | default ('UTF-8') }}"
|
||||
|
||||
;Upload-Fortschritt
|
||||
apc.rfc1867 = 1
|
||||
|
||||
display_errors = Off
|
||||
|
||||
;Empfohlene Einstellungen (pcc)
|
||||
allow_url_fopen = Off
|
||||
assert.active = Off
|
||||
mail.add_x_header = Off
|
||||
session.use_strict_mode = 1
|
7
templates/php-fpm.ini.j2
Normal file
7
templates/php-fpm.ini.j2
Normal file
|
@ -0,0 +1,7 @@
|
|||
; Ansible managed
|
||||
|
||||
{% if php_fpm_config is defined %}
|
||||
{% for key, value in php_fpm_config.items() %}
|
||||
{{ key }} = {{ value }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
|
@ -1,20 +0,0 @@
|
|||
; Ansible managed
|
||||
|
||||
upload_max_filesize = {{ php.upload_max_filesize | default ('15M') }}
|
||||
post_max_size = {{ php.post_max_size | default ('15M') }}
|
||||
memory_limit = {{ php.memory_limit | default ('192M') }}
|
||||
max_execution_time = {{ php.max_execution_time | default ('300') }}
|
||||
|
||||
date.timezone = {{ php.date_timezone | default ('Europe/Berlin') }}
|
||||
default_charset = "{{ php.default_charset | default ('UTF-8') }}"
|
||||
|
||||
;Upload-Fortschritt
|
||||
apc.rfc1867 = 1
|
||||
|
||||
display_errors = Off
|
||||
|
||||
;Empfohlene Einstellungen (pcc)
|
||||
allow_url_fopen = Off
|
||||
assert.active = Off
|
||||
mail.add_x_header = Off
|
||||
session.use_strict_mode = 1
|
Loading…
Add table
Add a link
Reference in a new issue