diff --git a/uploads.ini.tpl b/uploads.ini.tpl index 97a6284..56fed73 100644 --- a/uploads.ini.tpl +++ b/uploads.ini.tpl @@ -1,6 +1,11 @@ +{{ $upload_max_size := "256M" }} +{{ if ne (env "UPLOAD_MAX_SIZE") "" }} {{ $upload_max_size = env "UPLOAD_MAX_SIZE" }} {{ end }} +{{ $upload_max_time := "30" }} +{{ if ne (env "UPLOAD_MAX_TIME") "" }} {{ $upload_max_time = env "UPLOAD_MAX_TIME" }} {{ end }} + 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 +upload_max_filesize = {{ $upload_max_size }} +post_max_size = {{ $upload_max_size }} +memory_limit = {{ $upload_max_size }} +max_execution_time = {{ $upload_max_time }} +max_input_time = {{ $upload_max_time }} \ No newline at end of file