Allow to configure upload limits
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Luke Murphy 2020-10-30 14:03:38 +01:00
parent c897d91b3e
commit 593f76df19
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
3 changed files with 11 additions and 0 deletions

View File

@ -18,6 +18,7 @@ export LOCAL_SETTINGS_CONF_VERSION=v1
export HTACCESS_CONF_VERSION=v1
export ENTRYPOINT_CONF_VERSION=v1
export COMPOSER_LOCAL_CONF_VERSION=v1
export UPLOAD_INI_VERSION=v1
# SAML

View File

@ -22,6 +22,8 @@ services:
configs:
- source: LocalSettings_conf
target: /var/www/html/LocalSettings.php
- source: upload_ini
target: /etc/php5/fpm/conf.d/uploads.ini
- source: entrypoint2_conf
target: /docker-entrypoint2.sh
mode: 0555
@ -103,3 +105,7 @@ configs:
name: ${STACK_NAME}_entrypoint2_${ENTRYPOINT_CONF_VERSION}
file: entrypoint.sh.tmpl
template_driver: golang
upload_ini:
name: ${STACK_NAME}_upload_ini_${UPLOAD_INI_VERSION}
file: uploads.ini.tmpl
template_driver: golang

4
uploads.ini.tmpl Normal file
View File

@ -0,0 +1,4 @@
upload_max_filesize = 10M
post_max_size = 10M
max_execution_time = 7200
max_file_uploads = 1000