32158079c6
Permet au client PWA charge en HTTPS de se connecter a LiveKit via proxy WSS. Modifications: - server/index.js: ajout proxy http-proxy-middleware - Route /livekit proxie vers http://localhost:7880 - Upgrade WebSocket active pour le proxy - server/package.json: ajout dependance http-proxy-middleware Fonctionnement: - Client HTTPS se connecte a wss://localhost:3000/livekit - Serveur Express proxie vers ws://localhost:7880 - Resout probleme mixed content (HTTPS ne peut pas WS)
39 lines
787 B
JSON
39 lines
787 B
JSON
{
|
|
"name": "ptt-live-server",
|
|
"version": "0.1.0",
|
|
"description": "PTT Live - Professional WebRTC Intercom Server",
|
|
"main": "index.js",
|
|
"type": "module",
|
|
"scripts": {
|
|
"start": "node index.js",
|
|
"dev": "node --watch index.js",
|
|
"test": "node --test"
|
|
},
|
|
"keywords": [
|
|
"webrtc",
|
|
"intercom",
|
|
"livekit",
|
|
"audio",
|
|
"ptt"
|
|
],
|
|
"author": "",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@livekit/rtc-node": "^0.13.28",
|
|
"dotenv": "^17.4.2",
|
|
"express": "^4.19.2",
|
|
"http-proxy-middleware": "^4.1.1",
|
|
"livekit-server-sdk": "^2.6.0",
|
|
"opusscript": "^0.1.1",
|
|
"qrcode-terminal": "^0.12.0",
|
|
"ws": "^8.17.0",
|
|
"yaml": "^2.4.2"
|
|
},
|
|
"devDependencies": {
|
|
"nodemon": "^3.1.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=20.0.0"
|
|
}
|
|
}
|