This commit is contained in:
@@ -28,6 +28,6 @@ jobs:
|
||||
git config --global --add safe.directory "$dir"
|
||||
cd "$dir"
|
||||
git pull --ff-only origin main
|
||||
docker compose --profile prod build
|
||||
docker compose --profile prod build --progress=plain
|
||||
docker compose --profile prod up -d --force-recreate kai-sa-go2rtc kai-sa-cam
|
||||
docker image prune -f
|
||||
|
||||
@@ -29,7 +29,8 @@ async function verifyAccess(headers: IncomingHttpHeaders): Promise<boolean> {
|
||||
try {
|
||||
await jwtVerify(token, jwks, { issuer: TEAM, audience: AUD });
|
||||
return true;
|
||||
} catch {
|
||||
} catch (e) {
|
||||
console.error("Access JWT rejected:", (e as Error).message);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -78,12 +79,6 @@ app.get("*", (req, res, next) => {
|
||||
});
|
||||
|
||||
const server = createServer(app);
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// WebSocket : routage manuel des upgrades.
|
||||
// AVANT : new WebSocketServer({ server, path: "/api/talk" }) répondait 400 à tout
|
||||
// upgrade d'un autre chemin, y compris /go2rtc/api/ws (flux MSE).
|
||||
// ---------------------------------------------------------------------------
|
||||
const wss = new WebSocketServer({ noServer: true, maxPayload: 1 << 20 });
|
||||
|
||||
server.on("upgrade", async (req, socket, head) => {
|
||||
|
||||
Reference in New Issue
Block a user