Adaptations pour paheko 1.3.0
This commit is contained in:
parent
c4bed9656d
commit
5f318a27fc
5 changed files with 14 additions and 78 deletions
|
@ -12,7 +12,7 @@ Fournir les variables suivantes. Par exemple :
|
|||
|
||||
```yaml
|
||||
docker_paheko_fqdn: paheko.example.com
|
||||
docker_paheko_version: 1.2.4
|
||||
docker_paheko_version: 1.3.0
|
||||
docker_paheko_data_dir: /data1
|
||||
docker_paheko_service_id: paheko
|
||||
docker_paheko_smtp_server: smtp.example.com
|
||||
|
|
|
@ -16,5 +16,4 @@
|
|||
with_items:
|
||||
- docker-compose.yml
|
||||
- config.local.php
|
||||
- php.ini
|
||||
notify: docker-compose-up
|
||||
|
|
|
@ -1,14 +1,24 @@
|
|||
<?php
|
||||
namespace Garradin;
|
||||
namespace Paheko;
|
||||
|
||||
// Some random key of more than 30 characters
|
||||
// Some random key of more than 30 characters
|
||||
// openssl rand -base64 40
|
||||
const SECRET_KEY = '{{ docker_paheko_secret_key }}';
|
||||
|
||||
// SMTP parameters
|
||||
const SMTP_HOST = '{{ docker_paheko_smtp_server }}';
|
||||
const SMTP_PORT = 25;
|
||||
{% if docker_paheko_smtp_port is defined %}
|
||||
const SMTP_PORT = '{{ docker_paheko_smtp_port }}';
|
||||
{% endif %}
|
||||
{% if docker_paheko_smtp_security is defined %}
|
||||
const SMTP_SECURITY = '{{ docker_paheko_smtp_security }}';
|
||||
{% else %}
|
||||
const SMTP_SECURITY = 'NONE';
|
||||
{% endif %}
|
||||
{% if docker_paheko_smtp_user is defined %}
|
||||
const SMTP_USER = '{{ docker_paheko_smtp_user }}';
|
||||
const SMTP_PASSWORD = '{{ docker_paheko_smtp_password }}';
|
||||
{% endif %}
|
||||
|
||||
// Upgrades should be handled by new docker image version
|
||||
const ENABLE_UPGRADES = false;
|
||||
|
|
|
@ -8,7 +8,6 @@ services:
|
|||
restart: always
|
||||
volumes:
|
||||
- ./config.local.php:/var/www/paheko/config.local.php
|
||||
- ./php.ini:/usr/local/etc/php/php.ini
|
||||
- {{ docker_paheko_data_dir }}/{{ docker_paheko_service_id }}/data:/var/www/paheko/data
|
||||
- /var/www/paheko/data/plugins
|
||||
labels:
|
||||
|
|
|
@ -1,72 +0,0 @@
|
|||
# from production php.ini
|
||||
[PHP]
|
||||
engine = On
|
||||
short_open_tag = Off
|
||||
precision = 14
|
||||
output_buffering = 4096
|
||||
zlib.output_compression = Off
|
||||
implicit_flush = Off
|
||||
unserialize_callback_func =
|
||||
serialize_precision = -1
|
||||
disable_functions =
|
||||
disable_classes =
|
||||
zend.enable_gc = On
|
||||
zend.exception_ignore_args = On
|
||||
expose_php = On
|
||||
max_execution_time = 30
|
||||
max_input_time = 60
|
||||
memory_limit = 128M
|
||||
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
|
||||
display_errors = Off
|
||||
display_startup_errors = Off
|
||||
log_errors = On
|
||||
log_errors_max_len = 1024
|
||||
ignore_repeated_errors = Off
|
||||
ignore_repeated_source = Off
|
||||
report_memleaks = On
|
||||
variables_order = "GPCS"
|
||||
request_order = "GP"
|
||||
register_argc_argv = Off
|
||||
auto_globals_jit = On
|
||||
post_max_size = {{ docker_paheko_max_file_size_mb }}M
|
||||
auto_prepend_file =
|
||||
auto_append_file =
|
||||
default_mimetype = "text/html"
|
||||
default_charset = "UTF-8"
|
||||
doc_root =
|
||||
user_dir =
|
||||
enable_dl = Off
|
||||
file_uploads = On
|
||||
upload_max_filesize = {{ docker_paheko_max_file_size_mb }}M
|
||||
max_file_uploads = 20
|
||||
allow_url_fopen = On
|
||||
allow_url_include = Off
|
||||
default_socket_timeout = 60
|
||||
[Session]
|
||||
session.save_handler = files
|
||||
session.use_strict_mode = 0
|
||||
session.use_cookies = 1
|
||||
session.use_only_cookies = 1
|
||||
session.name = PHPSESSID
|
||||
session.auto_start = 0
|
||||
session.cookie_lifetime = 0
|
||||
session.cookie_path = /
|
||||
session.cookie_domain =
|
||||
session.cookie_httponly =
|
||||
session.cookie_samesite =
|
||||
session.serialize_handler = php
|
||||
session.gc_probability = 1
|
||||
session.gc_divisor = 1000
|
||||
session.gc_maxlifetime = 1440
|
||||
session.referer_check =
|
||||
session.cache_limiter = nocache
|
||||
session.cache_expire = 180
|
||||
session.use_trans_sid = 0
|
||||
session.sid_length = 26
|
||||
session.trans_sid_tags = "a=href,area=href,frame=src,form="
|
||||
session.sid_bits_per_character = 5
|
||||
[Assertion]
|
||||
zend.assertions = -1
|
||||
[Tidy]
|
||||
tidy.clean_output = Off
|
||||
|
Loading…
Reference in a new issue