add default values for env vars
Some checks failed
continuous-integration/drone/pr Build is failing

This commit is contained in:
Steven Sting 2024-12-01 18:46:43 +01:00
parent faf7335719
commit 1f91caf0fb

View File

@ -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" }}
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 }}