[claude] Add Gitea hardening: disable registration + require sign-in (#988) #997

Closed
Rockachopa wants to merge 1 commits from claude/issue-988 into main

1 Commits

Author SHA1 Message Date
Alexander Whitestone
110f67c567 fix: add Gitea hardening config and script to disable registration + require sign-in
Some checks failed
Tests / lint (pull_request) Failing after 5s
Tests / test (pull_request) Has been skipped
Adds deploy/gitea/app.ini with hardened [service] settings and
scripts/harden_gitea.sh to apply them on the server. The script
backs up the existing config, patches the four required settings,
restarts Gitea, and verifies the changes.

Settings applied:
- DISABLE_REGISTRATION = true
- ALLOW_ONLY_EXTERNAL_REGISTRATION = false
- SHOW_REGISTRATION_BUTTON = false
- REQUIRE_SIGNIN_VIEW = true

Fixes #988

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-22 18:39:05 -04:00