I was trying to find out where and how to create a custom .gitignore template for my repos.
Looking around I found out it is here:
/opt/gitea/custom/options/gitignore
I had to manually create the folders options/gitignore
.
Then within it place as many files you want, no extension, just the name of the template, for example:
Godot
and inside:
# Godot-specific ignores
.import/
export.cfg
export_presets.cfg
# Mono-specific ignores
.mono/
I hope this will be useful to someone else too.