From ArchWiki
Revision as of 11:30, 22 June 2018 by Pulec (talk | contribs) (Code markup in style with the previous guide, need's work)
Jump to navigation Jump to search


Install and configure and start the PostgreSQL, then do this to create gitea user and db:

Switch to postgres user:
$ $ sudo -u postgres -i
Start create db wizzard:
$ createuser --interactive
name gitea, superuser: yes (no idea if its needed)
then createdb named gitea using gitea user (its ok to launch the createdb command as regular user as well)
$ createdb gitea -U gitea
then try access the the DB via localhost, cause that's how the gittea will try to access it
$ psql -d gitea -h -W (host localhost and -W without anything for empty password)

Now to edit the /etc/gitea/app.ini

Default PostgreSQL port is 5432 if you haven't changed it

DB_TYPE = postgres
HOST =;5432
NAME = gitea
USER = postgres
SSL_MODE = disable

TODO setup a password, SSL_MODE wanted?