Serve the Windows setup via /install, ship deploy/agent in Master, and document volume upload for the gitignored exe. |
||
|---|---|---|
| .. | ||
| scripts | ||
| src | ||
| .gitignore | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
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
- Installeer → tray start mee met Windows
- Instellingen → Token Tray → kopieer API URL + key naar de tray
- Scripts → Viaplay / F1TV → accounts met e-mail + wachtwoord
Dev (zonder installer)
cd apps\token-tray
pnpm.cmd install
pnpm.cmd run build
pnpm.cmd run start
Installer bouwen + publiceren
cd apps\token-tray
pnpm.cmd install
pnpm.cmd run pack:win
pnpm.cmd run publish:installer
Dat schrijft:
deploy/agent/token-tray-setup.exedeploy/agent/token-tray.json
Master serveert:
GET /install/token-tray-setup.exeGET /install/token-tray.json
De .exe staat in .gitignore. Op Dokploy: mount/upload naar volume agent_install → /app/install/agent/, of force-add + rebuild image.
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