merge: resolve Dockerfile conflict (kept optimization + nvenc support)

This commit is contained in:
Michael committed 2026-01-07 08:44:50 +01:00
commit d1933f7500
22 files changed
+1865 -877

No files matched your search

+16 -3
View File
@@ -181,7 +181,8 @@ void main(List<String> args) async {
final user = req.context['user'] as User?;
if (user == null || !user.isAdmin) {
return Response.forbidden(
jsonEncode({'error': 'Admin access required'}));
jsonEncode({'error': 'Admin access required'}),
);
}
final result = await cleanupService.runCleanup();
@@ -231,8 +232,20 @@ void main(List<String> args) async {
// Create Streaming Router (Mount handlers on correct paths)
final streamingRouter = Router()
..mount('/api/live', createLiveStreamHandler(getPlaylist))
..mount('/api/vod', createVodStreamHandler(getPlaylist));
..mount(
'/api/live',
createLiveStreamHandler(
getPlaylist,
isGpuEnabled: db.isNvidiaGpuEnabled,
),
)
..mount(
'/api/vod',
createVodStreamHandler(
getPlaylist,
isGpuEnabled: db.isNvidiaGpuEnabled,
),
);
// Secured Proxy Pipeline
// We handle it outside the main router to preserve the '/api/xtream' prefix