fix: Proxy console WebSocket through main app for HTTPS compatibility

Browser blocks mixed content (HTTPS page -> HTTP WebSocket on port 5001).
Solution: Route WebSocket through main Flask app which goes through
existing HTTPS reverse proxy.

- Add Flask-SocketIO to main mc-webui app
- WebSocket handler proxies commands to bridge via HTTP
- Remove port 5001 external exposure (no longer needed)
- Remove duplicate title from console header

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
MarekWo
2026-01-09 13:18:56 +01:00
parent a5f7fd59e6
commit c376ecff30
6 changed files with 109 additions and 34 deletions
-2
View File
@@ -8,8 +8,6 @@ services:
restart: unless-stopped
devices:
- "${MC_SERIAL_PORT}:${MC_SERIAL_PORT}"
ports:
- "5001:5001" # Expose for WebSocket console access
volumes:
- "${MC_CONFIG_DIR}:/root/.config/meshcore:rw"
environment: