add some more wordpress options for file uploads (#44)

Co-authored-by: Steven Sting
Reviewed-on: https://git.coopcloud.tech/coop-cloud/wordpress/pulls/44
Reviewed-by: decentral1se <decentral1se@noreply.git.coopcloud.tech>
This commit is contained in:
stevensting
2024-12-09 14:59:57 +00:00
co-authored by autonomic-cooperative
parent 716e6df3cd
commit f49fa05ded
5 changed files with 17 additions and 5 deletions
+11
View File
@@ -0,0 +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 = {{ $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 }}