Git
Redbrick uses Gitea a community driven fork of Gogs for Git hosting.
- Gitea docs
- Gogs docs - though you shouldn't need these
- 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 the gitea_token.secret must be 740 and owned by git:gitea - Make sure that the gitea_token.secret does NOT have a newline character in it
Redbrick Special 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
# 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