maybe fix env vars?
Some checks failed
/ docker (push) Has been cancelled

This commit is contained in:
Lee 2023-07-05 01:37:42 +01:00
parent cae4d4f051
commit 08161a90d0

View File

@ -26,6 +26,9 @@ sed -i "s/^post_max_size = .*/post_max_size = ${MAX_UPLOAD_SIZE}/" /etc/php/8.1/
# Set max upload size for nginx
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
# Restart php to apply changes
echo "Restarting PHP to apply changes for max upload size"
service php8.1-fpm restart