MirrorBox Auto-Init: - Add blockchain-like gigogne P2P structure with peer zero (P0) genesis - Auto-create self-mesh on page load with configurable depth - Preserve MirrorBox peers during refresh cycles Self-Recovery System: - Add secubox-restore script for bootstrapping new OpenWrt boxes - Generate customized bootstrap.sh in Gitea backups - Support interactive and command-line restore modes ACL Fixes: - Add missing deploy/pull methods to luci-app-secubox-p2p ACL - Add luci.gitea and luci.secubox-p2p access to luci-app-secubox ACL - Fix null display issue in hub.js (changed to empty string) Backup Enhancements: - Fix syntax error in RPCD heredoc (openwrt_version line) - Add branch reference to Gitea API calls (main branch) - Include bootstrap.sh and secubox-restore in backup push Documentation: - Add comprehensive README.md for SecuBox P2P module Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
63 lines
1.3 KiB
JSON
63 lines
1.3 KiB
JSON
{
|
|
"luci-app-secubox-p2p": {
|
|
"description": "SecuBox P2P Hub",
|
|
"read": {
|
|
"ubus": {
|
|
"luci.secubox-p2p": [
|
|
"get_peers",
|
|
"get_settings",
|
|
"get_services",
|
|
"get_shared_services",
|
|
"discover",
|
|
"get_dns_config",
|
|
"get_wireguard_config",
|
|
"get_haproxy_config",
|
|
"get_registry",
|
|
"health_check",
|
|
"get_gitea_config",
|
|
"list_gitea_repos",
|
|
"get_gitea_commits",
|
|
"list_local_backups",
|
|
"get_dns_bridge_config",
|
|
"get_wg_mirror_config"
|
|
],
|
|
"uci": ["get", "state"]
|
|
},
|
|
"uci": ["secubox-p2p"]
|
|
},
|
|
"write": {
|
|
"ubus": {
|
|
"luci.secubox-p2p": [
|
|
"add_peer",
|
|
"remove_peer",
|
|
"set_settings",
|
|
"sync_catalog",
|
|
"broadcast_command",
|
|
"set_dns_config",
|
|
"set_wireguard_config",
|
|
"set_haproxy_config",
|
|
"register_url",
|
|
"set_gitea_config",
|
|
"create_gitea_repo",
|
|
"push_gitea_backup",
|
|
"pull_gitea_backup",
|
|
"create_local_backup",
|
|
"restore_local_backup",
|
|
"deploy_registry",
|
|
"deploy_registry_entry",
|
|
"deploy_services",
|
|
"deploy_local_services",
|
|
"deploy_service",
|
|
"pull_mesh_services",
|
|
"pull_service",
|
|
"set_dns_bridge_config",
|
|
"set_wg_mirror_config",
|
|
"sync_wg_mirror"
|
|
],
|
|
"uci": ["set", "delete", "commit", "apply"]
|
|
},
|
|
"uci": ["secubox-p2p"]
|
|
}
|
|
}
|
|
}
|