Skip to content

Instantly share code, notes, and snippets.

@bkenny
Created April 12, 2017 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bkenny/18317ddedfe73aa1a54850984bd2af92 to your computer and use it in GitHub Desktop.
Save bkenny/18317ddedfe73aa1a54850984bd2af92 to your computer and use it in GitHub Desktop.
Handy Dokku Goodies

File upload error

When you get the error: 413 “Request Entity Too Large” error with uploading a file

mkdir /home/dokku/appname/nginx.conf.d/
echo 'client_max_body_size 50M;' > /home/dokku/appname/nginx.conf.d/upload.conf
chown dokku:dokku /home/dokku/appname/nginx.conf.d/upload.conf #I don't know if this is needed
service nginx reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment