Instancia transcoder t1: cambios locales
This commit is contained in:
+9
-2
@@ -27,7 +27,14 @@ app.use(session({
|
||||
app.use(passport.initialize());
|
||||
app.use(passport.session());
|
||||
|
||||
app.use(express.static(path.join(__dirname, '..', 'public')));
|
||||
// Serve static files with no-cache for JS/CSS so browser always loads the latest version
|
||||
app.use(express.static(path.join(__dirname, '..', 'public'), {
|
||||
setHeaders(res, filePath) {
|
||||
if (filePath.endsWith('.js') || filePath.endsWith('.css')) {
|
||||
res.setHeader('Cache-Control', 'no-cache, must-revalidate');
|
||||
}
|
||||
}
|
||||
}));
|
||||
|
||||
// FFMPEG Configuration (optional - for transcoding support)
|
||||
// Priority: 1. System FFmpeg (better Docker DNS support), 2. ffmpeg-static npm package
|
||||
@@ -199,7 +206,7 @@ app.use((err, req, res, next) => {
|
||||
});
|
||||
|
||||
app.listen(PORT, async () => {
|
||||
console.log(`NodeCast TV server running on http://localhost:${PORT}`);
|
||||
console.log(`KiraTV server running on http://localhost:${PORT}`);
|
||||
|
||||
// Load plugins
|
||||
await loadPlugins().catch(err => {
|
||||
|
||||
Reference in New Issue
Block a user