In this guide I am going to do my best to set up a hosted git server using Gitea and running on Debian in a secure way. Please do make sure you understand the implications of my advice, and follow best practises if you choose to follow this guide.
That said, lets get started. The guide is broken down into steps, so that it is easier to follow.