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.

Starting With a Secure Base

Installing a Webserver

Installing a Mail Server

Installing a Database

Installing Gitea

Finalising Everything

Other Considerations