Self-host kit: compose + binary/systemd, app.ini template, kit.sh, e2e test #1
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "initial-kit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds the kit:
docker-compose.yml: officialgitea/gitea:28.1.0-rootless, pinned, loopback-only port.kit.shdownloads Gitea 28.1.0 and verifies its sha256;systemd/gitea.service+sudo ./kit.sh install-service.config/app.ini.template: our settings (public repos browsable, sign-up with image captcha, no org creation for new users, 10-repo limit, no migrations/mirrors, egress lax, SSH off). Secrets generated locally at render time.kit.sh: up / init / setup (admin + token) / protect / protect-all / agent (scoped token) / backup / status / down.tests/e2e-binary.sh: full run in a throwaway dir on a spare port.Tested on the box:
tests/e2e-binary.sh 399017/17 passed (direct push to main rejected even for the admin, PR merge works, agent token can create repos but gets 403 on admin API, new users cannot create orgs and stop at 10 repos, migrations off, captcha on sign-up, backup written, no deprecated config keys). The Docker image was also started with the rendered config: healthy, admin created, direct push to main rejected. Scrubbed: no tokens, passwords, internal hostnames or personal data.