Add new RPCD methods to luci.gitea for P2P mesh auto-setup: - create_user: Create regular Gitea user via CLI - generate_token: Generate access token with configurable scopes - create_repo: Create repository for a user via admin API These methods enable automated P2P mesh repository setup without requiring manual token generation in Gitea web UI. Requires lxc-attach package for container access. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
18 lines
549 B
JSON
18 lines
549 B
JSON
{
|
|
"luci-app-gitea": {
|
|
"description": "Grant access to Gitea Platform management",
|
|
"read": {
|
|
"ubus": {
|
|
"luci.gitea": ["get_status", "get_config", "get_logs", "list_repos", "get_repo", "list_users", "get_stats", "get_install_progress", "list_backups"]
|
|
},
|
|
"uci": ["gitea"]
|
|
},
|
|
"write": {
|
|
"ubus": {
|
|
"luci.gitea": ["save_config", "start", "stop", "restart", "install", "uninstall", "update", "create_backup", "restore_backup", "create_admin", "create_user", "generate_token", "create_repo"]
|
|
},
|
|
"uci": ["gitea"]
|
|
}
|
|
}
|
|
}
|