Introduction
The author encourages switching from GitHub to Gitea to regain full control over your code and avoid downtime. He presents the installation process on your own server and integration with local AI agents.
Key takeaways 4 / 6
The gist of the content in a few sentences
- A free open-source alternative allows for complete independence from Microsoft and better work organization.
- Using Ubuntu and Docker enables rapid deployment of instances both in the cloud (VPS) and locally.
- Using ed25519 keys instead of passwords significantly increases the security of the server connection.
- Using an MCP server allows local models, such as Gemma 4, to independently create pull requests.
Show all 6 takeaways
- Configuring the UFW firewall and disabling PasswordAuthentication protects the system from brute force attacks.
- The GitHub mirroring feature allows you to combine private hosting with public code availability.
Video chapters 20Click and the video will play from the selected moment
- 2:00Benefits of self-hosting code
- 2:16Requirements and installation environment
- 3:07VPS server configuration and system installation
- 4:27Preparing the Docker environment for Gitea
- 6:53Configuring Gitea environment and files
- 8:21Gitea installation and configuration
- 9:31Managing code across multiple locations
- 9:38Configuring SSH authentication in Gitea
- 12:12Managing remote Git repositories
- 12:23Moving a repository to Gitea
- 13:37Configuring access for AI agents
- 14:22Installing the MCP server for Gitea
- 15:40Configuring and testing Gitea MCP
- 16:53Automating code work with AI
- 18:21Automating tasks with local AI
- 19:11Configuring repository mirroring
- 21:45Securing VPS server access
- 23:14Configuring the UFW firewall
- 23:56Securing Gitea and authentication
- 24:45Closing and prayer
Summary
First 3 of 20 partsBenefits of self-hosting code
The speaker encourages moving away from relying on GitHub in favor of your own server, which helps avoid downtime and ensures Microsoft has no control over the user's code. As a solution, he proposes Gitea, a free open-source alternative that the author finds easy to configure. According to the speaker, who has been using the tool for six months, switching to your own server provides a sense of freedom and allows for better work organization, especially for those coding with the help of AI.
The author refers to Git technology, which powers both GitHub and Gitea, noting that it helps track changes in projects and prevents code chaos. He emphasizes that a situation where a local AI agent opens a pull request on your own server is the best possible scenario, as it keeps everything local.
Requirements and installation environment
Self-hosting means the user must provide server space instead of relying on an external provider. The speaker suggests choosing a reliable and accessible location, proposing Hostinger (VPS), which is the sponsor of the material. However, he notes that the described installation method applies both in the cloud and in a local lab (on-prem).
The installation process is to take place on Ubuntu, using a new virtual machine or VPS. The primary deployment tool is to be Docker, since in theory, Gitea should run on any system that supports it.
VPS server configuration and system installation
The speaker suggests using the Hostinger platform to host the VPS, pointing to the KVM 2 plan as the preferred choice. According to him, such a server can serve as a coding hub where you can install Gitea, Claude Code, or Codex. During the configuration process, the Ubuntu operating system version 26.04 (an ambiguous value in the transcription) was selected, the server location was specified, and a root password was created.
Once the server was started, access was gained using the SSH command in the terminal, accepting the fingerprints and providing the root password. The speaker notes that at this point, the server is exposed to the internet and has not yet been secured, which will be handled at a later stage.
Read the full summary – for free
17 parts of text left, key takeaways, facts, questions and answers, action items – with the source minute for every passage. Plus search, collections and the AI assistant.
Keep reading for freeFree, in a minute. Have an account? Log in
