Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase PHP/Nginx limits #15

Open
SolalPirelli opened this issue Apr 12, 2019 · 1 comment
Open

Increase PHP/Nginx limits #15

SolalPirelli opened this issue Apr 12, 2019 · 1 comment

Comments

@SolalPirelli
Copy link
Member

SolalPirelli commented Apr 12, 2019

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 1000

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

  • Set client_max_body_size 0; instead of the existing 64M

Then supervisorctl restart all

@SolalPirelli SolalPirelli changed the title Increase PHP limits Increase PHP/Nginx limits Apr 12, 2019
@SolalPirelli
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant