From 26de8896c5948391d2f5cc9af525fefca6ebd9da Mon Sep 17 00:00:00 2001 From: Sebastjan Date: Sun, 7 Jun 2026 15:26:29 +0200 Subject: [PATCH] bunny.ts: generateSignedUrl now returns folxvideos CDN URL --- server/bunny.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/server/bunny.ts b/server/bunny.ts index 8e273fd..9189acc 100644 --- a/server/bunny.ts +++ b/server/bunny.ts @@ -254,12 +254,7 @@ export class BunnyService { // Generate signed URL for private video access generateSignedUrl(videoId: string, expirationTime: number = 3600): string { - const baseUrl = `https://${this.hostname}/${videoId}/playlist.m3u8`; - const expires = Math.floor(Date.now() / 1000) + expirationTime; - - // Simple token generation (in production, use proper HMAC signing) - const token = Buffer.from(`${videoId}:${expires}:${this.apiKey.substring(0, 8)}`).toString('base64'); - - return `${baseUrl}?token=${token}&expires=${expires}`; + // Switched to folxvideos.b-cdn.net (S3-folxspeed origin) - public, no token required + return `https://folxvideos.b-cdn.net/folx-tv/${videoId}/master.m3u8`; } } \ No newline at end of file