- Add secubox-p2p backend package: - UCI configuration for P2P settings, DNS federation, WireGuard mesh, HAProxy - RPCD handler for peer management, service discovery, mesh configuration - Init script and main P2P manager daemon - Add luci-app-secubox-p2p frontend package: - Main hub view with master control, network matrix visualization - Peers management with discovery and manual add - Services view showing local and shared services - Mesh network configuration (DNS, WireGuard, HAProxy) - Settings for P2P and registry configuration - Add Services Registry view to luci-app-secubox - Add listProfiles/applyProfile to secubox-admin API - Fix P2P ACL permissions - Remove old hub.js from luci-app-secubox (moved to dedicated package) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
37 lines
811 B
Plaintext
37 lines
811 B
Plaintext
config p2p 'main'
|
|
option enabled '1'
|
|
option node_name ''
|
|
option discovery_enabled '1'
|
|
option discovery_method 'mdns'
|
|
option sharing_enabled '1'
|
|
option auto_sync '1'
|
|
option sync_interval '60'
|
|
|
|
config dns_federation 'dns'
|
|
option enabled '0'
|
|
option primary_dns '127.0.0.1:53'
|
|
option sync_enabled '1'
|
|
option base_domain 'sb.local'
|
|
|
|
config wireguard_mesh 'wireguard'
|
|
option enabled '0'
|
|
option listen_port '51820'
|
|
option network_cidr '10.100.0.0/24'
|
|
option auto_configure '1'
|
|
|
|
config haproxy 'haproxy'
|
|
option enabled '0'
|
|
option strategy 'round-robin'
|
|
option health_check '1'
|
|
option failover '1'
|
|
|
|
config hub_registry 'registry'
|
|
option base_url 'sb.local'
|
|
option cache_enabled '1'
|
|
option cache_ttl '300'
|
|
|
|
config maas 'maas'
|
|
option enabled '0'
|
|
option auto_register '1'
|
|
option sync_interval '60'
|