fix error: 413 Request Entity Too Large on deploy with caprover

What is it?

When you are deploying a tar file with large size, you will see this error message. This is caused due to the nginx.conf which sets default max file size limit to 200MB.

How to fix it?

  1. In your captain dashboard, go to settings.
  2. Edit the file /etc/nginx/conf.d/captain-root.conf and update client_max_body_size 300m as per your requirement.
  3. Click 'Save and Update' for captain to reload nginx.

Sai Krishna

I’m Sai Krishna – coder, foodie, movie lover. I love to build new stuff. Sometimes not really useful but cool stuff.