default customizable post size
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
96f0922f9f
commit
b97b5665d6
@ -3,6 +3,7 @@
|
|||||||
WEBROOT=/data/www
|
WEBROOT=/data/www
|
||||||
WEBDAV_PORT=${WEBDAV_PORT:-8080}
|
WEBDAV_PORT=${WEBDAV_PORT:-8080}
|
||||||
PHP=${PHP:-none}
|
PHP=${PHP:-none}
|
||||||
|
POSTSIZE=${POSTSIZE:-256M}
|
||||||
USERNAME=${USERNAME:-theuser}
|
USERNAME=${USERNAME:-theuser}
|
||||||
PUID=${PUID:-1000}
|
PUID=${PUID:-1000}
|
||||||
GROUPNAME=${GROUPNAME:-thegroup}
|
GROUPNAME=${GROUPNAME:-thegroup}
|
||||||
@ -36,11 +37,21 @@ pm.max_children = ${FPM_MAX_CHILDREN}
|
|||||||
pm.start_servers = ${FPM_START_SERVERS}
|
pm.start_servers = ${FPM_START_SERVERS}
|
||||||
pm.min_spare_servers = ${FPM_MIN_SPARE_SERVERS}
|
pm.min_spare_servers = ${FPM_MIN_SPARE_SERVERS}
|
||||||
pm.max_spare_servers = ${FPM_MAX_SPARE_SERVERS}
|
pm.max_spare_servers = ${FPM_MAX_SPARE_SERVERS}
|
||||||
|
EOF
|
||||||
|
cat >"/etc/${PHP}/conf.d/post_size.ini" <<EOF
|
||||||
|
upload_max_size = ${POSTSIZE}
|
||||||
|
post_max_size = ${POSTSIZE}
|
||||||
|
upload_max_filesize = ${POSTSIZE}
|
||||||
|
upload_tmp_dir = /tmp
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
cat >"/etc/nginx/custom.d/post_size.conf" <<EOF
|
||||||
|
client_max_body_size ${POSTSIZE};
|
||||||
|
EOF
|
||||||
|
|
||||||
# start php
|
# start php
|
||||||
case "${PHP}" in
|
case "${PHP}" in
|
||||||
"php7")
|
"php7")
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
WEBROOT=/data/www
|
WEBROOT=/data/www
|
||||||
WEBDAV_PORT=${WEBDAV_PORT:-8080}
|
WEBDAV_PORT=${WEBDAV_PORT:-8080}
|
||||||
PHP=${PHP:-none}
|
PHP=${PHP:-none}
|
||||||
|
POSTSIZE=${POSTSIZE:-256M}
|
||||||
USERNAME=${USERNAME:-theuser}
|
USERNAME=${USERNAME:-theuser}
|
||||||
PUID=${PUID:-1000}
|
PUID=${PUID:-1000}
|
||||||
GROUPNAME=${GROUPNAME:-thegroup}
|
GROUPNAME=${GROUPNAME:-thegroup}
|
||||||
@ -36,11 +37,21 @@ pm.max_children = ${FPM_MAX_CHILDREN}
|
|||||||
pm.start_servers = ${FPM_START_SERVERS}
|
pm.start_servers = ${FPM_START_SERVERS}
|
||||||
pm.min_spare_servers = ${FPM_MIN_SPARE_SERVERS}
|
pm.min_spare_servers = ${FPM_MIN_SPARE_SERVERS}
|
||||||
pm.max_spare_servers = ${FPM_MAX_SPARE_SERVERS}
|
pm.max_spare_servers = ${FPM_MAX_SPARE_SERVERS}
|
||||||
|
EOF
|
||||||
|
cat >"/etc/${PHP}/conf.d/post_size.ini" <<EOF
|
||||||
|
upload_max_size = ${POSTSIZE}
|
||||||
|
post_max_size = ${POSTSIZE}
|
||||||
|
upload_max_filesize = ${POSTSIZE}
|
||||||
|
upload_tmp_dir = /tmp
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
cat >"/etc/nginx/custom.d/post_size.conf" <<EOF
|
||||||
|
client_max_body_size ${POSTSIZE};
|
||||||
|
EOF
|
||||||
|
|
||||||
# start php
|
# start php
|
||||||
case "${PHP}" in
|
case "${PHP}" in
|
||||||
"php84")
|
"php84")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user