ARUNAVO RAY 3d763cf75e docs: move the user docs to the website and bring the rest up to date (#529)
* docs: move the user docs to the website and fix what the code contradicts

The README is down to the pitch, a quick start and links. The docs/
pages that repeated the website (environment variables, sources, push
targets, notifications, force-push protection, SSO, Nix) and the root
NIX.md and certs/README.md are now short stubs pointing at the site,
after moving their remaining true facts there.

Checking those facts against the code also turned up site pages that
were wrong:
- SAML sign-in does not work from the UI, and the ACS URL was wrong
- the OIDC provider discovery URL lives under /api/auth
- force-push protection does not stop Gitea's own mirror schedule
- a read-only /app/certs mount stops the container at startup
- gitea-mirror-db on Nix does not touch the real database
- several environment variable rows described the wrong behavior
- DESTINATION_PROVIDER is not checked against the destination lock

The link checker now covers every markdown file in the repository, and
four screenshots nothing links to are gone.

* ci: check the environment variable reference against the code

scripts/check-env-docs.ts fails when the app reads a variable the
reference page does not list, or the page lists one nothing reads. The
variables that are read but deliberately undocumented (internal ones,
and those stored but never used) are listed in the script with a
reason, and the check also fails when one of those stops being read.

* docs: bring the maintainer docs up to date

CLAUDE.md, CONTRIBUTING.md, the development workflow, the SSO testing
guide, the Nix packaging notes and the site's own README and CLAUDE.md
described scripts, files, ports and behavior that no longer exist. They
now match the code: Astro 7, multiple sources and destinations, the real
CI steps, the test isolation rules, the TypeScript 7 type check
workaround, and the AGPL license.

GRACEFUL_SHUTDOWN.md and RECOVERY_IMPROVEMENTS.md are merged into
SHUTDOWN_AND_RECOVERY.md. It also records two gaps: a job stopped by a
clean shutdown is not resumed by recovery, and Docker's 10 second stop
timeout is shorter than the 30 second shutdown.

AGENTS.md now points at CLAUDE.md.

* docs: changelog for the docs consolidation

* ci: count the env config loader's envFlag reads in the env check
2026-11-17 16:56:57 +05:30
2025-05-18 09:31:23 +05:30
2025-11-06 07:43:14 +05:30
2025-10-31 09:00:18 +05:30
2025-10-22 13:46:30 +05:30
2026-03-01 07:35:13 +05:30
2025-05-18 09:31:23 +05:30
2025-07-10 21:44:35 +05:30
2025-07-10 23:15:37 +05:30
2026-10-14 17:35:37 +05:30
2025-07-07 08:50:54 +05:30
2026-11-17 12:38:47 +05:30

Gitea Mirror Logo

Gitea Mirror

Automatically mirror repositories from GitHub to your self-hosted Gitea/Forgejo instance.

release build container license

Gitea Mirror keeps a self-hosted copy of your repositories. Connect GitHub (or GitLab, Gitea, Forgejo or any git host), pick a Gitea or Forgejo server, and it mirrors your repositories, organizations and starred projects there, with issues, pull requests, releases, wiki and LFS if you want them, and keeps them in sync on a schedule.

📖 Documentation

Quick start

git clone https://github.com/RayLabsHQ/gitea-mirror.git
cd gitea-mirror
docker compose -f docker-compose.alt.yml up -d

Open http://localhost:4321 and create an account; the first one becomes the admin. Then connect a source and a destination on the Configuration page. The Quickstart walks through it, including the compose file to use without cloning.

Dashboard Dashboard Mobile

Features

  • Mirror your public, private and starred repositories and whole organizations, including public organizations you are not a member of
  • Sources: GitHub, GitHub Enterprise and GitHub Apps, plus GitLab, Gitea, Forgejo and plain git hosts in beta (Sources)
  • Destinations: Gitea as pull mirrors, plus Forgejo, and GitHub or GitLab as push targets, in beta (Destinations)
  • Issues, pull requests (as issues), labels, milestones, releases with assets, wiki and Git LFS, with filters and limits per organization and repository
  • Mirror strategies to keep the source's structure, use one organization, or put everything under your user, plus a destination per organization or repository
  • Scheduled syncs, discovery of new repositories, and cleanup that archives mirrors whose source is gone (Cleanup and reconcile)
  • Force-push protection: a snapshot, or your approval, before a sync rewrites history
  • Notifications through ntfy, Apprise, Gotify or a signed webhook
  • Sign in with email and password, OIDC single sign-on, or a header from your reverse proxy (Authentication)
  • A REST API with API keys, and an MCP server for AI assistants
  • Live dashboard, activity log, storage overview and CSV export
  • Tokens encrypted at rest with AES-256-GCM

Install

Method Guide
Docker Compose Quickstart
Plain docker run Deployment
Kubernetes with Helm Deployment
Nix and NixOS Deployment
Proxmox LXC Deployment
Unraid Unraid guide
Bare metal with Bun Deployment

The image is ghcr.io/raylabshq/gitea-mirror, built for amd64 and arm64. Before upgrading, see Backups and upgrades.

Documentation

Repositories Repositories Mobile

Community projects

Built by the community on top of the Gitea Mirror API:

  • GiteaMirrorBot by MajMcCloud: a Telegram bot that spots GitHub links posted in a group and, when you confirm, adds the repository or organization to Gitea Mirror and starts the mirror. It can also post notifications back into the group. Runs as a single binary or a Docker image.

Contributing

Contributions are welcome. Read the contributing guide first; docs/DEVELOPMENT_WORKFLOW.md covers the local setup. Report security issues privately through GitHub security advisories.

License

GNU Affero General Public License v3.0 (AGPL-3.0), see LICENSE.

Star history

Star History Chart

Support

S
Description
Gitea Mirror auto-syncs GitHub repos to your self-hosted Gitea/Forgejo, with a sleek Web UI and easy Docker deployment.
Readme
36 MiB
Languages
TypeScript 85%
MDX 7.5%
Nix 4.6%
Astro 1.5%
Shell 1%
Other 0.3%