config system-hub 'config'
	option enabled '1'
	option dashboard_refresh '30'
	option auto_health_check '1'
	option health_check_interval '3600'
	option log_retention_days '30'
	option debug_mode '0'
	option theme 'indigo'

# Remote Assistance Configuration
config remote 'remote'
	option enabled '1'
	option rustdesk_enabled '0'
	option rustdesk_server ''
	option rustdesk_key ''
	option rustdesk_id ''
	option rustdesk_password ''
	option allow_unattended '0'
	option session_timeout '3600'
	option require_approval '1'
	option notify_on_connect '1'

# Health Monitoring
config health 'health'
	option enabled '1'
	option cpu_warning '80'
	option cpu_critical '95'
	option memory_warning '80'
	option memory_critical '95'
	option disk_warning '80'
	option disk_critical '95'
	option temperature_warning '70'
	option temperature_critical '85'
	option uptime_notify '604800'
	option auto_report '1'
	option report_schedule 'weekly'
	option report_email ''

# Diagnostics Configuration
config diagnostics 'diagnostics'
	option enabled '1'
	option collect_logs '1'
	option collect_config '1'
	option collect_network '1'
	option collect_services '1'
	option collect_packages '1'
	option collect_hardware '1'
	option anonymize_sensitive '1'
	option max_log_lines '1000'
	option compression 'gzip'
	option upload_enabled '0'
	option upload_url ''
	option upload_token ''

# Support Contact
config support 'support'
	option provider 'CyberMind.fr'
	option email 'support@cybermind.fr'
	option phone '+33 X XX XX XX XX'
	option website 'https://cybermind.fr'
	option ticket_url 'https://cybermind.fr/support'
	option documentation_url 'https://docs.cybermind.fr'

# Component Registry - Current
config component 'crowdsec'
	option name 'CrowdSec'
	option description 'Cybersécurité collaborative'
	option package 'luci-app-crowdsec-status'
	option service 'crowdsec'
	option icon 'shield'
	option color '#22c55e'
	option category 'security'
	option status 'installed'
	option version '1.0.0'
	option health_check '/usr/bin/cscli version'

config component 'netdata'
	option name 'Netdata'
	option description 'Monitoring temps réel'
	option package 'luci-app-netdata-status'
	option service 'netdata'
	option icon 'activity'
	option color '#00ab44'
	option category 'monitoring'
	option status 'installed'
	option version '1.0.0'
	option health_check 'curl -s http://localhost:19999/api/v1/info'
	option web_port '19999'

config component 'netifyd'
	option name 'Netifyd'
	option description 'Deep Packet Inspection'
	option package 'luci-app-netifyd-status'
	option service 'netifyd'
	option icon 'search'
	option color '#8b5cf6'
	option category 'network'
	option status 'installed'
	option version '1.0.0'
	option health_check 'netifyd --status'

config component 'wireguard'
	option name 'WireGuard'
	option description 'VPN moderne'
	option package 'luci-app-wireguard-dashboard'
	option service 'network'
	option icon 'lock'
	option color '#88171a'
	option category 'vpn'
	option status 'installed'
	option version '1.0.0'
	option health_check 'wg show'

config component 'network_modes'
	option name 'Network Modes'
	option description 'Multi-mode réseau'
	option package 'luci-app-network-modes'
	option service 'network'
	option icon 'layers'
	option color '#f97316'
	option category 'network'
	option status 'installed'
	option version '1.0.0'

config component 'client_guardian'
	option name 'Client Guardian'
	option description 'NAC & Portail Captif'
	option package 'luci-app-client-guardian'
	option service 'client-guardian'
	option icon 'users'
	option color '#ef4444'
	option category 'security'
	option status 'installed'
	option version '1.0.0'

# Component Registry - Future/Planned
config component 'adguard'
	option name 'AdGuard Home'
	option description 'Blocage publicités DNS'
	option package 'luci-app-adguardhome'
	option service 'adguardhome'
	option icon 'shield-off'
	option color '#68bc71'
	option category 'security'
	option status 'planned'
	option roadmap_date '2025-Q1'

config component 'prometheus'
	option name 'Prometheus'
	option description 'Métriques & Alerting'
	option package 'luci-app-prometheus'
	option service 'prometheus'
	option icon 'database'
	option color '#e6522c'
	option category 'monitoring'
	option status 'planned'
	option roadmap_date '2025-Q1'

config component 'grafana'
	option name 'Grafana'
	option description 'Visualisation avancée'
	option package 'luci-app-grafana'
	option service 'grafana'
	option icon 'bar-chart-2'
	option color '#f46800'
	option category 'monitoring'
	option status 'planned'
	option roadmap_date '2025-Q2'

config component 'tailscale'
	option name 'Tailscale'
	option description 'Mesh VPN zero-config'
	option package 'luci-app-tailscale'
	option service 'tailscale'
	option icon 'globe'
	option color '#0ea5e9'
	option category 'vpn'
	option status 'planned'
	option roadmap_date '2025-Q1'

config component 'homeassistant'
	option name 'Home Assistant'
	option description 'Domotique intégrée'
	option package 'luci-app-homeassistant'
	option service 'homeassistant'
	option icon 'home'
	option color '#41bdf5'
	option category 'automation'
	option status 'planned'
	option roadmap_date '2025-Q2'

config component 'ntopng'
	option name 'ntopng'
	option description 'Analyse trafic avancée'
	option package 'luci-app-ntopng'
	option service 'ntopng'
	option icon 'trending-up'
	option color '#1e88e5'
	option category 'network'
	option status 'planned'
	option roadmap_date '2025-Q2'

# Scheduled Tasks
config schedule 'health_daily'
	option enabled '1'
	option name 'Rapport Santé Quotidien'
	option type 'health_report'
	option cron '0 6 * * *'
	option notify '1'

config schedule 'backup_weekly'
	option enabled '1'
	option name 'Sauvegarde Hebdomadaire'
	option type 'config_backup'
	option cron '0 3 * * 0'
	option retain '4'

config schedule 'cleanup_logs'
	option enabled '1'
	option name 'Nettoyage Logs'
	option type 'log_cleanup'
	option cron '0 4 * * *'
	option older_than '30'
