mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-22 14:38:06 +02:00
merge: resolve Dockerfile conflict (kept optimization + nvenc support)
This commit is contained in:
commit
d1933f7500
22 files changed
+1865
-877
No files matched your search
+16
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user