From 035ba8281aa9d72e4b42b435cd418a272973690e Mon Sep 17 00:00:00 2001 From: Jimmy Lynn Date: Fri, 6 Jul 2018 21:48:01 -0700 Subject: [PATCH] Update Readme.md with Modify nginx config limits Add Modify nginx config limits section. --- README.markdown | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.markdown b/README.markdown index f203047..c5f7038 100644 --- a/README.markdown +++ b/README.markdown @@ -69,3 +69,17 @@ git add . git commit -m "Modify Upload File Size Limit" git push dokku master ``` + +### Modify nginx config limits +Dokku's default nginx config limits the client max body size to to 1MB. +So it may cause image upload HTTP error. + +Login into your server. + +```shell +mkdir /home/dokku/your-wordpress-website/nginx.conf.d/ +echo 'client_max_body_size 50m;' > /home/dokku/your-wordpress-website/nginx.conf.d/upload.conf +chown dokku:dokku /home/dokku/your-wordpress-website/nginx.conf.d/upload.conf +service nginx reload +``` +Where your-wordpress-website is the app name