Uploading and downloading release attachments is slow and fallible

I’ve been having a problem with my install of Gitea. When I interact with release assets, either by downloading or uploading, the transfer speed is very slow. Like 3 minutes to upload a 26MB file.

I have tried:

  • Swapping from SQLite database storage to Postgres in case the database was inappropriate;
  • Accessing Gitea directly on LAN, without any reverse proxies to remove possible bottlenecks;
  • Uploading and downloading things to Git LFS, that has normal high speed (>100MBps over LAN)

No success so far. I want to use the releases system to store my game builds, which are a couple hundred megabytes large, and as of now it is literally impossible to download them, I get timeouts when downloading them over LAN.

How can I even begin to debug this? There’s nothing unusual on the logs, just successful GETs that apparently complete in 14s, even though by then the client hasn’t even got a tenth of the file downloaded.