Cannot attach file to release

Hi guys, I have a problem with attachments in my gitea docker, I can only add very small files, like lesser than 1MB. Bigger don’t go through with no warnings or errors, they’re just not there when I open my relese.
I’ve changed upload limit in app.ini

[attachment]
ENABLED = true
ALLOWED_TYPES =
PATH = /data/gitea/attachments
MAX_SIZE = 4000
MAX_FILES = 5

and

[repository.upload]
TEMP_PATH = /data/gitea/uploads
FILE_MAX_SIZE = 40000
ALLOWED_TYPES =
MAX_FILES = 5

and rebuilt my docker but still no luck. Is there something else I should edit?

How are you connecting to Gitea? Is it just your your browser -> Gitea or is there a reverse proxy somewhere in between? This issue is typically due to a reverse proxy having a stricter upload limit than Gitea and just discarding the file before it ever gets to Gitea.

Yes, it was nginx limiting the uploaded file’s size. Thank!