Projekte anlegen und Clips in Stücken hochladen
Ein Projekt hält die ausgewählten Clips samt Absender und Beschriftung. Videos kommen in Stücken bis 16 MB; die Größe der Teildatei ist der Stand, sodass ein abgebrochener Upload dort weitermacht. Nach dem letzten Stück liest ffprobe Länge, Größe, Drehung und Tonspur aus. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
6f583c8f5b
commit
782d306cb1
7 files changed
+549
-2
No files matched your search
+4
-1
@@ -5,6 +5,8 @@ import express from 'express';
|
||||
import { createApp } from './app.js';
|
||||
import { loadSessionSecret } from './auth.js';
|
||||
import { loadConfig } from './config.js';
|
||||
import { probe } from './media.js';
|
||||
import { createProjectStore } from './projects.js';
|
||||
|
||||
const rootDir = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
||||
|
||||
@@ -13,7 +15,8 @@ if (!config.pin) {
|
||||
console.warn('APP_PIN ist nicht gesetzt – Anmeldung ist nicht möglich.');
|
||||
}
|
||||
|
||||
const app = createApp({ config, secret: loadSessionSecret(config) });
|
||||
const store = createProjectStore({ dataDir: config.dataDir, probe });
|
||||
const app = createApp({ config, secret: loadSessionSecret(config), store });
|
||||
const server = http.createServer(app);
|
||||
|
||||
if (config.isProduction) {
|
||||
|
||||
Reference in new issue
Block a user