Redbrick uses Gitea as an open source git host.
Gitea and its database are deployed to Hardcase which runs NixOS
- The actual repositories are stored in
/zroot/gitand most other data is stored in
INTERNAL_TOKEN_URIare stored in
/var/secrets. They are not automatically created and must be copied when setting up new hosts. Permissions on the
gitea_token.secretmust be 740 and owned by
- Make sure that the
gitea_token.secretdoes NOT have a newline character in it.
The Giteadmin credentials are in the passwordsafe.
Gitea is very well documented in itself. Here's a couple of special commands when deploying/migrating Gitea to a different host.
# Regenerate hooks which fixes push errors /path/to/gitea admin regenerate hooks # If you didn't copy the authorized_keys folder then regen that too /path/to/gitea admin regenerate keys