feat: initial repo — docs and scripts for Gitea read-only token access

Three-layer access scheme: owner -> reader account -> scoped API token.
Includes 6 automation scripts, config template, EN/RU docs, and manual curl guide.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
delta-cloud-208e
2026-02-21 14:47:04 +00:00
commit 295afe9b2a
12 changed files with 950 additions and 0 deletions

18
config.example.ini Normal file
View File

@@ -0,0 +1,18 @@
[gitea]
url = https://git.example.com
api_url = https://git.example.com/api/v1
[owner]
# Admin account that owns the repositories
username = myuser
password = mypassword
[reader]
# Restricted read-only account
username = myreader
password = readerpassword
email = myreader@noreply.local
token_name = installer-readonly
token_scope = read:repository
# After running setup-reader.sh, the token will be written here:
# token = sha1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx