#!/bin/sh # SPDX-License-Identifier: MIT # SecuBox Landing Page Generator # Copyright (C) 2025 CyberMind.fr . /lib/functions.sh UCI_CONFIG="service-registry" OUTPUT_PATH="/www/secubox-services.html" # Get output path from config config_load "$UCI_CONFIG" config_get OUTPUT_PATH main landing_path "$OUTPUT_PATH" # Get services JSON SERVICES_JSON=$(ubus call luci.service-registry list_services 2>/dev/null) if [ -z "$SERVICES_JSON" ]; then echo "Error: Could not fetch services" exit 1 fi # Get hostname HOSTNAME=$(uci -q get system.@system[0].hostname || echo "SecuBox") # Generate HTML cat > "$OUTPUT_PATH" <<'HTMLHEAD'
Published endpoints and access links