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>
19 lines
472 B
INI
19 lines
472 B
INI
[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
|