Pre receive hook

Hi Folks. We are trying to setup setup server side pre-receive hooks for one of our repository which is self hosted in on-prem gitea. Can someone please share steps/any documentation to accomplish this?

Git hooks are disabled by default. You can enable it by changing the app.ini.