Forgejo

Packages

  • git

  • git-lfs

Users

adduser \
--disabled-password \
--group \
--home '/home/git' \
--shell '/usr/bin/bash' \
--system \
git

Files

  • /etc/systemd/system/forgejo.service

  • /usr/local/bin/forgejo

  • /usr/local/bin/forgejo-runner

Config

mkdir '/etc/forgejo'
chown root:git '/etc/forgejo'
chmod 770 '/etc/forgejo'
  • app.ini

[ui]
AMBIGUOUS_UNICODE_DETECTION = false

Data

mkdir '/var/lib/forgejo'
chown git:git '/var/lib/forgejo'
chmod 750 '/var/lib/forgejo'

Enable

systemctl enable forgejo

Interface