diff --git a/rootfs/etc/confd/templates/www.conf.tmpl b/rootfs/etc/confd/templates/www.conf.tmpl index 6244798..10653f3 100644 --- a/rootfs/etc/confd/templates/www.conf.tmpl +++ b/rootfs/etc/confd/templates/www.conf.tmpl @@ -391,7 +391,7 @@ pm.max_spare_servers = 3 ; the current environment. ; Default Value: clean env ;env[HOSTNAME] = $HOSTNAME -;env[PATH] = /usr/local/bin:/usr/bin:/bin +env[PATH] = /usr/local/bin:/usr/bin:/bin ;env[TMP] = /tmp ;env[TMPDIR] = /tmp ;env[TEMP] = /tmp @@ -421,6 +421,13 @@ pm.max_spare_servers = 3 ;php_admin_flag[log_errors] = on ;php_admin_value[memory_limit] = 32M +php_admin_value[default_charset] = UTF-8 + +{{if (getenv "MAXUPLOADSIZE")}} +php_admin_value[upload_max_filesize] = {{getenv "MAXUPLOADSIZE"}} +php_admin_value[post_max_size] = {{getenv "MAXUPLOADSIZE"}} +{{end}} + {{if (getenv "PHP_ADMIN_VALUES")}} {{range $admin_value := split (getenv "PHP_ADMIN_VALUES") ";"}} {{$values := split ($admin_value) "="}} @@ -433,4 +440,4 @@ php_admin_value[{{index $values 0}}] = {{index $values 1}} {{$values := split ($admin_flag) "="}} php_admin_flag[{{index $values 0}}] = {{index $values 1}} {{end}} -{{end}} \ No newline at end of file +{{end}}