VHost Manager v2.0: - Add modern dashboard UI with auto-refresh for Internal Services, Redirects, and Virtual Hosts tabs - Implement template activation system with one-click deployment (19 services, 6 redirects) - Add section_id parameter to RPC backend for named VHost profiles - Enhance API with createVHost() wrapper for template-based creation - Fix redirect support with nginx return directive validation - Add action buttons (Edit/Enable/Disable/Remove) to all VHost cards - Implement confirmation modals for destructive actions - Update README with comprehensive v2.0 feature documentation - Add templates.json catalog with pre-configured service/redirect templates Network Tweaks v1.0: - Create network services dashboard with dynamic component discovery - Add RPC backend with component filtering by network capabilities - Implement cumulative impact tracking (DNS entries, VHosts, ports) - Add network mode integration for profile-based settings - Create dashboard.css with responsive grid layouts - Add 10-second auto-refresh polling for live status updates New Applications: - Add luci-app-magicmirror (Smart mirror application) - Add secubox-app-magicmirror with Docker runtime - Add luci-app-network-tweaks (Network services monitoring) - Add secubox-app-adguardhome (DNS filtering) - Add secubox-app-nextcloud (File sync and sharing) - Add plugin catalog manifests for AdGuard Home, MagicMirror, Nextcloud Bug Fixes: - Fix RPC backend shell script errors (remove local declarations from case statements) - Fix fs.exec usage in vhosts.js (replace with uci module) - Fix form rendering in Virtual Hosts view (use proper LuCI patterns) - Fix file ownership issues (ensure root:root for deployed files) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
39 lines
853 B
Bash
39 lines
853 B
Bash
#!/bin/sh /etc/rc.common
|
|
|
|
START=99
|
|
STOP=10
|
|
|
|
USE_PROCD=1
|
|
|
|
start_service() {
|
|
# Ensure dnsmasq.d directory exists
|
|
mkdir -p /tmp/dnsmasq.d
|
|
|
|
# Initial synchronization
|
|
/usr/sbin/network-tweaks-sync sync
|
|
|
|
# Set up procd file watcher for vhosts config
|
|
procd_open_instance
|
|
procd_set_param command /bin/sh -c "while true; do sleep 3600; done"
|
|
procd_set_param respawn
|
|
procd_set_param file /etc/config/vhosts /etc/config/network_tweaks
|
|
procd_set_param reload_signal SIGHUP
|
|
procd_close_instance
|
|
}
|
|
|
|
reload_service() {
|
|
# Re-sync when config changes
|
|
/usr/sbin/network-tweaks-sync sync
|
|
}
|
|
|
|
stop_service() {
|
|
# Optionally cleanup on stop (commented out to preserve entries)
|
|
# /usr/sbin/network-tweaks-sync cleanup
|
|
:
|
|
}
|
|
|
|
service_triggers() {
|
|
# Trigger reload when vhosts or network_tweaks config changes
|
|
procd_add_reload_trigger "vhosts" "network_tweaks"
|
|
}
|