Setting file size limit similar to github

Hi, I’m new to hosting servers so this may be super obvious. But I can’t figure out how to set a max file size on gitea. It says in the documentation that I can list “MAX_FILE_SIZE” under [indexer], but I tried this and restarted my server and nothing happened. Then I tried:

[indexer]
REPO_INDEXER_ENABLED = true
REPO_INDEXER_PATH = indexers/repos.bleve
UPDATE_BUFFER_LEN = 20
MAX_FILE_SIZE = 1048576
REPO_INDEXER_INCLUDE =

and restarted my server and still nothing happened. Not exactly sure what I’m doing. Does anyone know how to do this?

The indexer is used for code search, and the max file size setting there is to determine the max file size of files to be indexed. If you don’t wan’t files over a certain size committed to your instance you are able to use githooks to prevent that (please note, you should only have trusted users modify githooks)