Can't Increase the Max File Size

You can SSH into discourse while you’re SSH’ed into your Droplet. From there, you could nano /etc/nginx/conf.d/discourse.conf and edit the file directly.

Or I guess you could also copy the file from inside discourse to your host server,

$ scp discourseIP:/etc/nginx/conf.d/discourse.conf ~/discourse.conf

edit the file, and then scp it back into the discourse container.

$ scp ~/discourse.conf discourseIP:/etc/nginx/conf.d/discourse.conf

Either way, once you’ve edited the file, you would have to tell the contained instance of nginx to reload its configuration, like so:

$ docker exec discourse nginx -s reload

#Update

It turns out that there’s a parameter for it in the *.yml configuration. Just add upload_size: 5000M.

Source: Changing Max Attachment Size

4 Likes