feat(gitea): disable open registration

This commit is contained in:
tiennm99 committed 2026-10-08 07:59:47 +07:00
1 parent 3ea1b39e44
commit c040eb25cf
2 files changed
+5 -1

No files matched your search

+4 -1
View File
@@ -26,6 +26,8 @@ itself.
- **HTTPS only.** The proxy routes HTTP, not SSH, so Gitea's SSH server is
disabled and the UI offers HTTPS clone URLs only.
- **Registration disabled.** The instance is public, and open sign-up drew
spam accounts. Admins create users from the site administration page.
- **One-hour clone timeout.** Gitea's defaults (600 s to migrate, 300 s to
fetch) cut off multi-gigabyte repositories mid-clone, leaving empty mirrors
that still hold gigabytes of unreachable packfiles. A client that calls the
@@ -38,7 +40,8 @@ itself.
## Usage
Complete Gitea's first-run setup at `GITEA_ROOT_URL`, then create an access
Complete Gitea's first-run setup at `GITEA_ROOT_URL`, creating the admin
account there since sign-up is closed, then create an access
token for any tool that mirrors into it.
## Storage
+1
View File
@@ -28,6 +28,7 @@ services:
GITEA__database__USER: gitea
GITEA__server__ROOT_URL: ${GITEA_ROOT_URL:?required}
GITEA__server__DISABLE_SSH: "true"
GITEA__service__DISABLE_REGISTRATION: "true"
GITEA__git_0X2E_timeout__MIGRATE: ${GITEA_CLONE_TIMEOUT:-3600}
GITEA__git_0X2E_timeout__MIRROR: ${GITEA_CLONE_TIMEOUT:-3600}
volumes: