auto-start services, prompt for WG + LAN nets, fix busybox httpd applet

- create-lxc.sh prompts for WIRECON_NET / PEER_IP / CLIENT_IP / LAN_CIDR
  (defaults 10.13.13.0/24, .1, .2, 192.168.1.0/24) and passes them through
  to the in-container bootstrap
- install.sh generates a placeholder /etc/wireguard/wg0.conf from those
  env vars instead of copying the static example, and updates PEER_IP in
  wirecon.conf on first install
- install.sh always enables + starts wg-quick, watchdog, monitor and
  (if WIRECON_WEB_AUTOSTART=yes, default yes) the web UI, even before
  keys are filled in — wg-quick will fail until then, and the web UI
  is the way to finish configuration
- apk installs busybox-extras and wirecon-web now runs /usr/sbin/httpd
  (fixes "httpd: applet not found" on base busybox)
- create-lxc.sh drops its own web-UI start block (install.sh owns it)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
d4nn13andClaude Opus 4.7 committed 2026-04-19 19:41:44 +02:00
1 parent 14fad9a49e
commit 78c3a790be
3 files changed
+112 -57

No files matched your search

+2 -2
View File
@@ -14,8 +14,8 @@ description="wirecon web UI (busybox httpd)"
: "${WEB_ROOT:=/var/www/wirecon}"
supervisor="supervise-daemon"
command="/bin/busybox"
command_args="httpd -f -v -p ${WEB_BIND}:${WEB_PORT} -h ${WEB_ROOT} -c /etc/wirecon/httpd.conf"
command="/usr/sbin/httpd"
command_args="-f -v -p ${WEB_BIND}:${WEB_PORT} -h ${WEB_ROOT} -c /etc/wirecon/httpd.conf"
respawn_delay=5
respawn_max=0
output_log="/var/log/wirecon-web.log"