diff --git a/.claude/HISTORY.md b/.claude/HISTORY.md index 735a9d18..d2f61b7c 100644 --- a/.claude/HISTORY.md +++ b/.claude/HISTORY.md @@ -3097,3 +3097,19 @@ git checkout HEAD -- index.html - Add mitmproxy route in `/srv/mitmproxy-in/haproxy-routes.json` - Ensures all MetaBlogizer sites go through WAF inspection (security policy compliance). - Uploaded sites now immediately accessible via HTTPS domain. + +33. **GK2 Hub Generator v3 (2026-02-22)** + - Complete rewrite of hub-generator with dynamic multi-view portal. + - **Features:** + - Automatic categorization: Intelligence, Développement, Documentation, Finance, Média, etc. + - Iframe thumbnail previews showing real site content + - Tag cloud with category counts + - Category tabs with emoji indicators + - Instant search by domain/name/category + - Three view modes: Grid, List, Compact + - Auto-refresh every 5 minutes via cron + - Created explicit HAProxy vhosts for all 54 MetaBlogizer sites with `waf_bypass=1` and `priority=50`. + - Fixed wildcard `.gk2.secubox.in` routing to use `vortex_hub` with `priority=999` (processed last). + - Fixed missing mitmproxy routes for `admin.gk2.secubox.in` and `hub.gk2.secubox.in`. + - **Files:** + - `secubox-app-gk2hub/files/usr/sbin/hub-generator` (new) diff --git a/package/secubox/secubox-app-gk2hub/files/usr/sbin/hub-generator b/package/secubox/secubox-app-gk2hub/files/usr/sbin/hub-generator new file mode 100755 index 00000000..5df4de93 --- /dev/null +++ b/package/secubox/secubox-app-gk2hub/files/usr/sbin/hub-generator @@ -0,0 +1,252 @@ +#!/bin/sh +# SecuBox Hub Generator v3 - Dynamic portal with categories and thumbnails + +OUTPUT="/www/gk2-hub/index.html" +TEMP="/tmp/hub_gen_$$.html" +CACHE_DIR="/tmp/hub-cache" +DATE=$(date "+%Y-%m-%d %H:%M") + +mkdir -p "$CACHE_DIR" + +# Categorize site based on name +categorize_site() { + local name=$(echo "$1" | tr '[:upper:]' '[:lower:]') + case "$name" in + *intel*|*dgse*|*osint*|*threat*|*secu*|*raid*|*confid*|*mku*|*bdgse*|*camus*) echo "Intelligence" ;; + *game*|*play*|*comic*|*virus*|*survie*) echo "Divertissement" ;; + *dev*|*code*|*git*|*sdlc*|*crt*|*fabric*) echo "Développement" ;; + *doc*|*manual*|*guide*|*how*|*fm*|*bgp*|*lrh*|*bcf*) echo "Documentation" ;; + *media*|*video*|*tube*|*stream*|*radio*|*lyrion*|*jellyfin*) echo "Média" ;; + *blog*|*news*|*press*|*zine*|*flash*|*pub*) echo "Actualités" ;; + *cloud*|*file*|*nextcloud*) echo "Cloud" ;; + *admin*|*control*|*status*|*hub*|*glances*|*holo*) echo "Administration" ;; + *money*|*coin*|*crypto*|*cgv*|*cpi*|*apr*) echo "Finance" ;; + *geo*|*map*|*gondwana*|*earth*) echo "Géographie" ;; + *psy*|*oracle*|*yijing*|*bazi*|*equa*|*lunaquar*|*clock*) echo "Ésotérique" ;; + *) echo "Projets" ;; + esac +} + +get_emoji() { + case "$1" in + "Intelligence") echo "🔍" ;; + "Divertissement") echo "🎮" ;; + "Développement") echo "💻" ;; + "Documentation") echo "📚" ;; + "Média") echo "🎬" ;; + "Actualités") echo "📰" ;; + "Cloud") echo "☁️" ;; + "Administration") echo "⚙️" ;; + "Finance") echo "💰" ;; + "Géographie") echo "🌍" ;; + "Ésotérique") echo "🔮" ;; + *) echo "📄" ;; + esac +} + +# Start HTML +cat > "$TEMP" << 'HTMLHEAD' + + +
+ + +