Gitea¶
Redbrick uses Gitea as an open source git host.
- Gitea docs
- Gogs docs, not really important, but Gitea is built on Gogs
- Link to Redbrick deployment
Deployment¶
Gitea and its database are deployed to Hardcase which runs NixOS
- The actual repositories are stored in
/zroot/git
and most other data is stored in/var/lib/gitea
- The
SECRET_KEY
andINTERNAL_TOKEN_URI
are stored in/var/secrets
. They are not automatically created and must be copied when setting up new hosts. Permissions on thegitea_token.secret
must be 740 and owned bygit:gitea
- Make sure that the
gitea_token.secret
does NOT have a newline character in it.
Other Notes¶
The Giteadmin credentials are in the passwordsafe.
Operation¶
Gitea is very well documented in itself. Here's a couple of special commands when deploying/migrating Gitea to a different host.