diff --git a/.env.sample b/.env.sample index aa2af08..ca25d8e 100644 --- a/.env.sample +++ b/.env.sample @@ -41,6 +41,10 @@ SECRET_DB_PASSWORD_VERSION=v1 # Multisite (see README) #MULTISITE=enable # either 'enable', 'subdomain' or 'subfolder' +# File upload settings +#UPLOAD_MAX_SIZE=256M +#UPLOAD_MAX_TIME=30 + # Local SMTP relay #COMPOSE_FILE="$COMPOSE_FILE:compose.mailrelay.yml" #SMTP_HOST="postfix_relay_app" diff --git a/uploads.ini b/uploads.ini deleted file mode 100644 index 37f881d..0000000 --- a/uploads.ini +++ /dev/null @@ -1,6 +0,0 @@ -file_uploads = On -upload_max_filesize = 256M -post_max_size = 256M -memory_limit = 256M -max_execution_time = 30 -max_input_time = 30 \ No newline at end of file diff --git a/uploads.ini.tpl b/uploads.ini.tpl new file mode 100644 index 0000000..97a6284 --- /dev/null +++ b/uploads.ini.tpl @@ -0,0 +1,6 @@ +file_uploads = On +upload_max_filesize = {{ env "UPLOAD_MAX_SIZE" }} +post_max_size = {{ env "UPLOAD_MAX_SIZE" }} +memory_limit = {{ env "UPLOAD_MAX_SIZE" }} +max_execution_time = {{ env "UPLOAD_MAX_TIME" }} +max_input_time = {{ env "UPLOAD_MAX_TIME" }} \ No newline at end of file