As documented in https://docs.gitea.io/en-us/config-cheat-sheet/ the database type is defined using db_type not type.