Logo       PBase-Foundation

Gitea

Gitea provides a simple lightweight application ready to manage a Git repository. Here's how to install Gitea using an Apache server to proxy to a Gitea service. With either a PostgreSQL or MySQL database backend. Includes option to use the built-in Let's Encrypt certbot for HTTPS.

Gitea with Postgres

After running pbase-preconfig-postgres-gitea you may customize your installation.

yum -y install https://pbase-foundation.com/pbase-preconfig.rpm
yum -y install pbase-preconfig-postgres-gitea
yum -y install pbase-postgres
yum -y install pbase-apache
yum -y install pbase-gitea

Gitea with MySQL

After running pbase-preconfig-mysql-gitea you may customize your installation.

yum -y install https://pbase-foundation.com/pbase-preconfig.rpm
yum -y install pbase-preconfig-mysql-gitea
yum -y install pbase-mysql
yum -y install pbase-apache
yum -y install pbase-gitea

Extras

You should secure your server with pbase-firewall-enable, and lock down SSH access with the pbase-ssh-fail2ban package.

yum -y install pbase-ssh-fail2ban
yum -y install pbase-firewall-enable

Configuration Options

{
"pbase_gitea" : {
"httpPort": 3000,
"addApacheProxy": true,
"protocol": "http",
"domain": "pbase-foundation.com",
"rootUrl": "http://pbase-foundation.com/git/",
"disableRegistration": false,
"requireSigninView": false
}
}