HomePortfolioJourneyGithubContactBlog

← Blog

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


November 09, 2019

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.

Kyle Mathews

Written by Sai Krishna who loves to build new stuff. Sometimes not really useful but cool stuff. Previously built SpotPlay, mHotspot, reymusic.co
You can find him on Twitter and Github

Built with GatsbyJS