1.7 KiB
1.7 KiB
Media Cluster Token Tray
Windows system-tray helper: stille browser-UI login voor Viaplay + F1TV (geen HTTP-login → geen cmd-CAPTCHA).
Gebruikers (productie)
- Open https://admin.vonas.nl/agent → download NSIS-installer (of upload een nieuwe build)
- Installeer → tray start mee met Windows
- Instellingen → Token Tray → kopieer API URL + key naar de tray
- Scripts → Viaplay / F1TV → accounts met e-mail + wachtwoord
Installer bouwen + uploaden (Admin)
cd apps\token-tray
pnpm.cmd install
pnpm.cmd run pack:win
Ga naar Admin → Agent (/agent), vul het versie-label in, kies release\token-tray-setup.exe.
Master bewaart het op /app/install/agent/ (volume) — geen Docker-host/docker cp nodig.
API:
GET /api/v1/admin/install/token-tray— statusPOST /api/v1/admin/install/token-tray— multipartfile+versionDELETE /api/v1/admin/install/token-tray— verwijderen- Publiek:
GET /install/token-tray-setup.exe+token-tray.json
Dev (zonder installer)
cd apps\token-tray
pnpm.cmd install
pnpm.cmd run build
pnpm.cmd run start
Auto-modus (hands-off)
Zolang de tray op de Windows-PC draait:
- Server onthoudt JWT-expiry per account
- Tray pollt elke 10 min
GET /api/v1/agent/refresh-due - Alleen als een token < 90 min geldig is (of ontbreekt): stille Chrome-login + push
- Jij hoeft niets te klikken — alleen PC/tray aan laten
Handmatig blijft beschikbaar: Nu checken / Alles vernieuwen.
API (tray-key)
GET /api/v1/agent/accounts— accounts + wachtwoordenGET /api/v1/agent/refresh-duePOST /api/v1/agent/viaplay/tokensPOST /api/v1/agent/f1tv/tokens