fix the fixing of the fix kind
All checks were successful
/ docker (push) Successful in 1m38s

This commit is contained in:
Lee 2023-07-05 01:38:41 +01:00
parent 08161a90d0
commit e18239d5bf

View File

@ -27,7 +27,7 @@ sed -i "s/^post_max_size = .*/post_max_size = ${MAX_UPLOAD_SIZE}/" /etc/php/8.1/
sed -i "s/client_max_body_size 500M;/client_max_body_size ${MAX_UPLOAD_SIZE};/" /etc/nginx/nginx.conf
# Setting env variable in php-fpm
echo "env[MAX_UPLOAD_SIZE] = ${MAX_UPLOAD_SIZE}" >> /etc/php/8.1/fpm/pool.d/www.conf
echo "env[UPLOAD_SECRETS] = ${UPLOAD_SECRETS}" >> /etc/php/8.1/fpm/pool.d/www.conf
# Restart php to apply changes
echo "Restarting PHP to apply changes for max upload size"