Open SolalPirelli opened 5 years ago
To execute in the container:
sed -i 's/post_max_size.*/post_max_size = 300M/' /etc/php/7.0/fpm/php.ini
sed -i 's/upload_max_filesize.*/upload_max_filesize = 300M/' /etc/php/7.0/fpm/php.ini
sed -i 's/max_file_uploads.*/max_file_uploads = 1000/' /etc/php/7.0/fpm/php.ini
sed -i --follow-symlinks 's/client_max_body_size.*/client_max_body_size 0;/' /etc/nginx/sites-enabled/default
In
/etc/php/7.0/fpm/php.ini
on the container:post_max_size
=upload_max_filesize
=300M
(above this DOMjudge starts lagging a lot...)max_file_uploads
=1000
just in case, 200 the default is a bit low, but also set the DOMjudge config sourcefiles limit to 1000In
/etc/nginx/sites-enabled/default
on the container: (NOTE, in the future this may become a symlink to a domjudge file, edit the real file instead! Or just edit the default nginx conf to override that at the end of the http block...)client_max_body_size 0;
instead of the existing 64MThen
supervisorctl restart all