← Back to catalog
Gitea

Gitea

v1.25.5

Lightweight self-hosted Git service with web interface

Install

$curl -fsSL https://virtua.sh/i/gitea | bash
No server?Virtua.Cloud →

What's included

  • Gitea 1.25.5 (fully configured, ready to use)
  • Built-in HTTPS via Let's Encrypt (for domain names)
  • SQLite by default, PostgreSQL and MySQL optional
  • Git SSH access on port 22
  • Systemd service with auto-restart

After install

  • Login at the URL shown with admin credentials
  • No setup wizard exposed to the internet
  • Create repositories and invite collaborators
  • Custom domain: GITEA_HOST=git.example.com
  • PostgreSQL: GITEA_DB_TYPE=postgres

How the install works

Generated from the install script itself -- these are the exact phases it runs on your server.

  1. 1.Pre-flight checks
  2. 2.Opening firewall
  3. 3.Installing system dependencies
  4. 4.Installing Git
  5. 5.Creating git user
  6. 6.Installing Gitea
  7. 7.Creating directory structure
  8. 8.Setting up database
  9. 9.Configuring Gitea
  10. 10.Initializing database
  11. 11.Creating admin user
  12. 12.Creating systemd service

Supported Operating Systems

Ubuntu 24Ubuntu 25Debian 12Debian 13Rocky 9Rocky 10Alma 9Alma 10

Requirements

RAM
512MB minimum
Disk
5GB minimum

Configuration

VariableDefaultDescription
GITEA_HOSTserver hostnameDomain name or IP. Domains get built-in HTTPS via Let's Encrypt.
GITEA_ADMIN_USERadminGitea admin username
GITEA_ADMIN_PASSrandom 24-charGitea admin password
GITEA_ADMIN_EMAILadmin@hostnameGitea admin email
GITEA_DB_TYPEsqlite3Database backend: sqlite3, postgres, or mysql
GITEA_DB_PASSrandom 24-charDatabase password (only used with postgres or mysql)

Changelog

v1.0.02026-04-02
  • Initial release with built-in HTTPS via Let's Encrypt
  • SQLite default, PostgreSQL and MySQL optional
  • CLI-based admin setup (no web wizard exposed)
  • Systemd service with auto-restart
  • Git SSH access on port 22