Skip to content
Projetos

Sobre

Companion guide to NetworkChuck's self-hosted GitHub (Gitea) video: install, push your code, connect AI agents, mirror to GitHub, lock it down.

Design e mídia

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
+1
em 7 dias
Coletando histórico
em 15 dias
Coletando histórico
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

You need to self-host GitHub RIGHT NOW!!

The companion guide to the NetworkChuck video.
Put your own GitHub (Gitea) on a server you control, push your code to it, hand issues to an AI agent (cloud and local), mirror it to GitHub, and lock the whole thing down. Every command, in the order the video runs them (one step moved earlier so you skip an error).

▶ Watch the video: you need to self-host Github RIGHT NOW!!


Tested on Gitea 28 Ubuntu 26.04 Chapters License: MIT


What is Gitea?

Gitea is a free, open source GitHub you run yourself. Repos, issues, pull requests, code review, a web page that looks a lot like GitHub, all on a server you own. When GitHub goes down, you don't. Microsoft doesn't hold your code. You do.

It's the second half of the Git video. There we built a little repo called Git Good (a web page and a zombie story) and put it on GitHub. Here it moves to a Git server we own. Never watched that one? Any folder of code works. You can follow along with whatever you've got.

What you'll build

flowchart LR
    you["<b>Your computer</b><br/>the gitgood folder"]
    gitea[("<b>Gitea</b><br/>on your server<br/>the remote, named origin")]
    agent["<b>Your AI agent</b><br/>Claude Code, cloud or local model"]
    gh[("<b>GitHub</b><br/>a mirror")]

    you -- "git push (SSH, port 222)" --> gitea
    agent -- "reads issues, opens PRs<br/>(Gitea MCP server)" --> gitea
    gitea -- "push mirror,<br/>every commit" --> gh

The path

Follow it in order. The times are where each part starts in the video.

# Chapter Video What you'll do
1 Get a server 1:46 A Hostinger VPS (or a VM in your home lab) running Ubuntu, and your first SSH login
2 Install Gitea 3:48 Docker, Gitea's own compose file plus one override file, HTTPS from Let's Encrypt, the setup page
3 Use it yourself 8:41 Make a repo, give Gitea your SSH key, make Gitea your origin, push
4 Connect your AI agent 13:31 A bot account, a token, the Gitea MCP server in Claude Code, and the issue → PR → merge loop
5 Do it again with local AI 18:09 Same loop, with a model running on your own computer through Ollama
6 Mirror to GitHub 18:46 Every push to Gitea shows up on GitHub by itself
7 Lock it down 21:33 SSH keys only, a firewall, 2FA on Gitea, plus backups and updates
8 Troubleshooting Every error hit while filming, and the fix

Short on time? The cheat sheet has every command on one page.

Before you start

  • A server. A cloud VPS or a VM at home, fresh Ubuntu. The video uses a Hostinger VPS (KVM 2). Anything that runs Docker should work.
  • A terminal on your own computer. Mac, Linux, or Windows PowerShell.
  • Git and a repo to move in. The Git video's guide builds one, or use any project folder.
  • An AI coding agent for chapters 4 and 5. The video uses Claude Code. Any agent that can use MCP servers works; the add-a-server command is different for each.
  • A GitHub account only for chapter 6, and only if you want the mirror.

[!NOTE] Filmed on Gitea 28.2.0, Ubuntu 26.04 LTS, Docker Compose, gitea-mcp 1.11.0 (October 2026). Rechecked November 2026 against Gitea 28.4.0 and gitea-mcp 1.13.0: same files, same steps. The video was filmed on a Mac. Where Windows needs a different command, the guide says so.

[!TIP] Everywhere you see YOUR-SERVER, put your server's address (Hostinger's looks like srv1234567.hstgr.cloud). Everywhere you see YOUR-USERNAME, put your Gitea username. Don't copy Chuck's.

Files in this repo

File What it is
examples/.env.example The three settings Gitea needs (database password, address, email)
examples/docker-compose.override.yml Our changes to Gitea's compose file: passwords, HTTPS, ports. Cloud servers
examples/docker-compose.override.homelab.yml The same for a home lab server that isn't on the internet (no HTTPS)

Links

Sponsor

The video was sponsored by Hostinger. A Hostinger VPS is a home lab in the cloud: always on, its own public address, and room for Gitea plus whatever else you want to self-host (your AI agents included). Chapter 1 walks through buying one.

Get a Hostinger VPS and use coupon code NETWORKCHUCK for an extra discount: hostinger.com/networkchuckbf

License

This guide is MIT licensed. Gitea, the Gitea MCP server, Docker, Ollama and Claude Code are separate projects with their own licenses.

Explore projetos relacionados

Carregando…