PolyProg / azdj

Azure DOMjudge setup script
1 stars 0 forks source link

Increase PHP/Nginx limits #15

Open SolalPirelli opened 5 years ago

SolalPirelli commented 5 years ago

In /etc/php/7.0/fpm/php.ini on the container:

In /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...)

Then supervisorctl restart all

SolalPirelli commented 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