secubox-openwrt/package/secubox/secubox-app-vhost-manager/Makefile
CyberMind-FR e13b6e4c8c feat(vhost-manager): Add centralized VHost manager
- Create secubox-app-vhost-manager package for unified vhost orchestration
- Single CLI tool (secubox-vhost) manages HAProxy, DNS, Tor, Mesh, mitmproxy
- Unified UCI config (/etc/config/vhosts) as single source of truth
- Backend adapters for each component (haproxy.sh, dns.sh, tor.sh, mesh.sh, mitmproxy.sh)
- Centralized backend resolution function (backends.sh)
- Import tool for existing HAProxy vhosts
- Validation of backend reachability before creation

Also includes:
- FAQ-TROUBLESHOOTING.md with LXC cgroup v1/v2 fixes
- Fix mitmproxyctl cgroup v1 -> v2 syntax for container compatibility
- HAProxy backend resolution bugfixes

CLI commands:
  secubox-vhost add <domain> <service> <port> [--ssl] [--tor] [--mesh]
  secubox-vhost remove/list/status/enable/disable/set/sync/validate/import

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 10:16:19 +01:00

40 lines
1.1 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=secubox-app-vhost-manager
PKG_VERSION:=1.0.0
PKG_RELEASE:=1
PKG_MAINTAINER:=SecuBox <support@secubox.io>
PKG_LICENSE:=GPL-3.0
PKG_FLAGS:=nonshared
include $(INCLUDE_DIR)/package.mk
define Package/secubox-app-vhost-manager
SECTION:=secubox
CATEGORY:=SecuBox
TITLE:=SecuBox Centralized VHost Manager
DEPENDS:=+secubox-core
PKGARCH:=all
endef
define Package/secubox-app-vhost-manager/description
Centralized virtual host management for SecuBox.
Orchestrates HAProxy, DNS, Tor, Mesh, and mitmproxy from a single interface.
endef
define Package/secubox-app-vhost-manager/conffiles
/etc/config/vhosts
endef
define Package/secubox-app-vhost-manager/install
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/etc/config/vhosts $(1)/etc/config/vhosts
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) ./files/usr/sbin/secubox-vhost $(1)/usr/sbin/secubox-vhost
$(INSTALL_DIR) $(1)/usr/lib/vhost-manager
$(INSTALL_DATA) ./files/usr/lib/vhost-manager/*.sh $(1)/usr/lib/vhost-manager/
endef
$(eval $(call BuildPackage,secubox-app-vhost-manager))