From faf7335719f4c2fe79b6d3221b68f67a29987514 Mon Sep 17 00:00:00 2001 From: Steven Sting Date: Sun, 1 Dec 2024 13:06:14 +0100 Subject: [PATCH] review findings --- .env.sample | 4 ++++ uploads.ini | 6 ------ uploads.ini.tpl | 6 ++++++ 3 files changed, 10 insertions(+), 6 deletions(-) delete mode 100644 uploads.ini create mode 100644 uploads.ini.tpl 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