'How can I increase the upload_max_filesize size of my dokku container from the the default 2M to about 20M
I currently cannot the php.ini file within my app which would have been an entry point for making such modification.
has anyone had to do this before?
Solution 1:[1]
@all i found a solution that worked for me.
since I use nginx on my server. I was able to locate the following file
/home/dokku/${app-name}/nginx.conf
and then In the locate block, i added the following
locate {
...
client_max_body_size 25M
}
And this increased the max_upload_filesize to 25M.
Solution 2:[2]
You can do it via native dokku commands:
dokku nginx:set <app-name> client-max-body-size 25m
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Kingsley Akindele |
| Solution 2 | Nikita |
