Forgejo
Run Forgejo on an exe.dev VM.
Forgejo is a lightweight, self-hosted Git forge and a community fork of Gitea. It works well as a private Git server, a team forge, or a mirror for GitHub repositories.
Quick start
Create a new Forgejo VM from the Forgejo starter.
How it works
exe.dev's HTTPS proxy handles TLS and forwards requests to port 8000 on your VM.
For authenticated users, exe.dev adds the X-ExeDev-UserID and X-ExeDev-Email headers. See Login with exe.dev for details.
Forgejo can use reverse proxy authentication with X-WEBAUTH-USER and X-WEBAUTH-EMAIL. nginx translates the exe.dev headers into the names Forgejo expects.
With auto-registration enabled, any exe.dev user you share the VM with gets a Forgejo account the first time they visit.
Mirroring from GitHub
Forgejo can mirror repositories from GitHub.
In the Forgejo UI, choose New Migration, then GitHub. Enter the repository URL and a personal access token with read access. Forgejo will clone the repo and keep it in sync.
For private repos, use a fine-grained GitHub PAT with read-only Contents permission for the repos you want to mirror.
Forgejo vs Gitea
Forgejo and Gitea are very similar on exe.dev.
Forgejo is a community fork of Gitea. Both use the same config format, the same reverse proxy auth flow, and the same basic setup. Pick the project you prefer.
