Commit Graph

4 Commits

Author SHA1 Message Date
40fcba797f fix(portal): Optimize get_vhosts RPC method for 191 vhosts
- Rewrote method_get_vhosts() to use single-pass awk parsing
- Reduced execution time from 30+ seconds timeout to 0.24 seconds
- Added arm, armada, files42 routes to mitmproxy config

The previous implementation made 4 UCI calls per vhost (764 total)
causing the luci-tree page to timeout. New implementation parses
uci show output once with awk.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-26 12:27:39 +01:00
e5e1151ffb feat(mitmproxy): Add route management and auto-sync for services
- Add route management commands:
  - `mitmproxyctl route list` - List all routes
  - `mitmproxyctl route add <domain> <ip> <port>` - Add manual route
  - `mitmproxyctl route remove <domain>` - Remove route
  - `mitmproxyctl route check` - Check for missing routes

- Improve sync-routes to scan MetaBlogizer and Streamlit services:
  - Auto-detect enabled MetaBlogizer sites and add routes
  - Auto-detect enabled Streamlit instances with matching vhosts
  - Warn about mitmproxy_inspector vhosts with missing routes

- Update routes config with 188 routes

This fixes the issue where services using mitmproxy_inspector backend
would fall back to default because their routes were not configured.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-26 11:52:01 +01:00
0b3908fb42 config: Add Streamlit mitmproxy routes
Added 22 missing routes for Streamlit apps:
- yijing360, fabricator, pix, wuyun, yling, bweep, bweek, hermes
- ftvm, cpf, pdf, papyrus, osint, swg, prompt, fanzine
- cybfan, tam, files_40, files_42, files42, console

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-26 11:42:53 +01:00
4038b49293 config: Add mitmproxy haproxy-routes.json for gk2.secubox.in sites
Added missing routes for MetaBlogizer sites:
- tdah.gk2.secubox.in -> 127.0.0.1:8960
- boom.gk2.secubox.in -> 127.0.0.1:8958
- zlib.gk2.secubox.in -> 127.0.0.1:8961
- ccom.gk2.secubox.in -> 127.0.0.1:8949
- tuto.gk2.secubox.in -> 127.0.0.1:8959

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