Ok I have just fixed the issue of uploading huge images to SN.Angry.Im. Basically the Mastodon docker containers didn't mount tmpfs correctly so everything was directly hitting the hard drive, which caused excessive latency and timeout. I fixed tmpfs and also increased the Nginx default timeout a little bit, now seems to work pretty OK.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!