DevOps12 min read•Updated November 2026

VPS Hosting for Forgejo

Quick answer

Forgejo is a free, community-governed, self-hosted Git platform that began as a fork of Gitea and is developed under the umbrella of the non-profit Codeberg e.V. To run it on a VPS, install the release binary as a systemd service or use the official container image, use PostgreSQL or MySQL for teams, publish it over HTTPS through Nginx or Caddy, configure SSH for Git, disable open registration and require two-factor authentication for admins. Enable Forgejo Actions with Forgejo Runner on separate servers, use the built-in package registry, back up with forgejo dump or file and database backups, and follow the release notes when upgrading.

Forgejo provides repositories, pull requests, code review, issues, projects, wikis, releases, webhooks, CI and packages in a lightweight Go application. It powers Codeberg, a large public forge, and many private installations. Teams choose it for its features, its small footprint and its community governance, which keeps the project independent of any single company.

Forgejo and Gitea

Forgejo started as a soft fork of Gitea and became a hard fork in 2024, so the two projects now diverge in features, release schedules and internals. Forgejo is released under a copyleft licence (GPL) in recent versions, while Gitea uses MIT. Day-to-day features are similar; differences show in newer features, federation work in Forgejo, and governance. If you are migrating from Gitea, check Forgejo's documentation for which Gitea versions can be upgraded directly, since that path is limited to certain versions.

Installation

  • Binary: create a git user, download and verify the release binary, place configuration under /etc/forgejo and data under /var/lib/forgejo, and run it with a systemd unit.
  • Container: use the official image with volumes for data and configuration, pinned to a version.
  • Complete the web installer or write app.ini yourself, then lock the installer.

Forgejo listens on port 3000 by default; bind it to localhost and use a reverse proxy.

Key Configuration

  • Database: PostgreSQL or MySQL/MariaDB for teams; SQLite for personal use.
  • ROOT_URL: the public HTTPS address, so clone URLs and links are correct.
  • Registration disabled or approval required on private instances.
  • Mailer configured through an SMTP provider.
  • LFS and attachment storage on local NVMe or S3-compatible object storage.

HTTPS and SSH

Publish Forgejo through Nginx or Caddy with HTTPS, raising request body limits for large pushes and LFS uploads. For Git over SSH, use the built-in SSH server on another port or pass port 22 through to Forgejo using the system SSH server's integration, so clone URLs stay clean.

Forgejo Actions

Forgejo Actions runs workflows in a syntax familiar from GitHub Actions. Enable Actions, install Forgejo Runner on separate VPS servers, register them with labels describing their environments (Docker images or the host), and keep them isolated from the Forgejo server. Some GitHub-specific actions may not work; test your workflows. Runner servers need CPU and RAM for builds (see our CI guide).

Packages

The built-in package registry hosts container images and many package formats, with permissions from users and organisations. Set cleanup rules for old versions so storage stays under control (see our registry guide).

Migrating Repositories

Forgejo can migrate repositories from GitHub, GitLab, Gitea and others, including issues, pull requests, labels and releases where supported. Migrate a few repositories first, check that history, issues and permissions came across correctly, then plan the rest. Push mirrors can keep a copy on another platform during the transition.

Backups

The forgejo dump command creates an archive of repositories, database and configuration. For larger installations, back up the data directory and database with consistent snapshots or your usual tools. Keep backups off-site with several generations and test restoring to a new server.

Upgrades

Forgejo publishes stable releases and long-term support releases. Read release notes and breaking changes, take a backup, replace the binary or image and restart; migrations run automatically. Choose LTS releases if you prefer fewer upgrades.

Security

  • HTTPS only, registration disabled on private instances, two-factor for admins.
  • Single sign-on through OAuth2/OpenID Connect or LDAP for teams.
  • Branch protection with required reviews and status checks.
  • Prompt security updates, which the project announces with releases.
  • Runners isolated from the Forgejo server and from production secrets.

Monitoring

Forgejo can expose Prometheus metrics. Watch response times, background queue lengths, disk usage for repositories, LFS and packages, and backup success. Alert on certificate expiry and low disk.

Sizing

SetupSuggested plan
Small team or organisation2 vCores / 8 GB
Many users, packages and LFS4 vCores / 16 GB with ample NVMe
Forgejo Runner serversSeparate 4–8 vCore servers

Forgejo or Gitea?

Both are good lightweight forges. Choose Forgejo if community governance and its licence matter to you or you want its newer features; choose Gitea if you prefer its ecosystem or commercial support options (see our Gitea guide). For the broader decision between Git hosting options, see our Git servers guide.

Example: An Open-Source Collective

A collective of open-source developers runs Forgejo with PostgreSQL on a 2 vCore / 8 GB VPS, with LFS storage in object storage. Two Forgejo Runner servers build and test pull requests, contributors sign in with two-factor authentication, release artifacts are published as packages, and nightly forgejo dump archives go to a separate storage provider.

Common Mistakes

  • Assuming any Gitea version can be upgraded directly to Forgejo.
  • Runners on the same server as Forgejo.
  • Open registration on a private instance.
  • No cleanup rules for packages.
  • Untested backups.

In Short

Forgejo is a lightweight, community-governed forge. Install it with a proper database behind HTTPS, configure SSH, lock down registration, run Actions on separate runners, back up regularly and upgrade following the release notes.

Federation and the Wider Community

Forgejo's developers are working on federation, so that users on different Forgejo instances can follow, star and eventually collaborate across servers. Federation features are being added gradually; check the release notes for what is currently available before relying on them.

SkyRainCloud Plans for This Workload

Forgejo is light: 2 vCores / 8 GB serves most teams. Run Forgejo Runner on separate VPS servers sized for your builds, and add disk for packages and LFS.

AMD EPYC 7C13 VPS

Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — AMD28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthWebsites, small APIs, bots, staging and VPN serversOrder
VPS 2 — AMD416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,299/monthWooCommerce, Node.js/Python backends, Docker Compose stacks, CI runnersOrder
VPS 3 — AMD832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,499/monthProduction databases, high-traffic sites, multi-container appsOrder
VPS 4 — AMD1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,899/monthLarge production workloads, SaaS platforms, analytics, in-memory cachesOrder

Intel Xeon Platinum 8269CY VPS

KVM VPS on Intel Xeon Platinum 8269CY (up to 3.80 GHz Turbo) with DDR4 ECC memory, NVMe SSD, full root access and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — Intel28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthBusiness websites, small apps, scheduled jobs and botsOrder
VPS 2 — Intel416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,169/monthBusiness software, mid-size databases, several sites on one serverCheck stock
VPS 3 — Intel832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,249/monthERP/CRM stacks, heavier databases, multiple production appsCheck stock
VPS 4 — Intel1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,299/monthHigh-memory workloads and consolidated production serversCheck stock

Prices are monthly in INR as listed on the SkyRainCloud store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.

Frequently Asked Questions

What is Forgejo?
A free, community-governed, self-hosted Git platform that began as a fork of Gitea, developed under Codeberg e.V.
Is Forgejo the same as Gitea?
No. It began as a fork and became a hard fork in 2024; features, releases and licence now differ.
What licence does Forgejo use?
Recent versions are released under a GPL copyleft licence; check the project for current details.
Can I migrate from Gitea to Forgejo?
Yes, but direct upgrades are supported only from certain Gitea versions; check the documentation.
Does Forgejo have CI?
Yes. Forgejo Actions runs workflows with Forgejo Runner on servers you host.
Which port does Forgejo use?
3000 for HTTP by default; publish it through a reverse proxy with HTTPS.
Can Forgejo host packages and images?
Yes, its package registry supports container images and many package formats.
How do I back up Forgejo?
With forgejo dump or consistent backups of the data directory and database, stored off-site.
Does Forgejo have LTS releases?
Yes, it publishes long-term support releases alongside stable releases.
Which plan suits Forgejo?
2 vCores / 8 GB for most teams; runners on separate servers.
Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning