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:
18
config.example.ini
Normal file
18
config.example.ini
Normal 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
|
||||
Reference in New Issue
Block a user