gitea

From Gentoo Wiki
Jump to: navigation, search

Gitea is painless self-hosted git service, a fork of gogs.

Installation

Gitea requires the use of a database backend, the following are supported:

USE flags

USE flags for www-apps/gitea A painless self-hosted Git service

acct User and group management via acct-*/git packages
filecaps Use Linux file capabilities to control privilege rather than set*id (this is orthogonal to USE=caps which uses capabilities at runtime e.g. libcap)
pam Add support for PAM (Pluggable Authentication Modules)DANGEROUS to arbitrarily flip
sqlite Add support for sqliteembedded sql database

Emerge

root #emerge --ask www-apps/gitea

Configuration

Files

  • /etc/gitea/app.ini - User configuration file, see bug #714844

Service

OpenRC

Starting gitea in the background:

root #rc-service gitea start

Current status of gitea service:

root #rc-service gitea status

Starting automatically at system boot:

root #rc-update add gitea default


Systemd

Starting gitea in the background:

root #systemctl start gitea

Current status of gitea service:

root #systemctl status gitea

Starting automatically at system boot:

root #systemctl enable gitea

Usage

Start and/or enable gitea service.

The web interface should be available at http://localhost:3000/, when running at first time, it should be redirected to http://localhost:3000/install.

Removal

Unmerge

root #emerge --ask --depclean --verbose www-apps/gitea

External resources