Die alte Clip-Auswahl-Oberfläche entfällt. Neu sind ein Express-Server, der im Entwicklungsbetrieb Vite einbindet, eine PIN-Anmeldung mit signiertem Sitzungs-Cookie und ein Docker-Image mit ffmpeg für VCH. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
13 lines
411 B
JavaScript
13 lines
411 B
JavaScript
import path from 'node:path';
|
|
|
|
export function loadConfig(env = process.env) {
|
|
return {
|
|
// Im Docker-Image fest auf 3000 (APP_PORT), sonst der von VCH vergebene PORT.
|
|
port: Number(env.APP_PORT || env.PORT || 3000),
|
|
pin: env.APP_PIN || '',
|
|
sessionSecret: env.SESSION_SECRET || '',
|
|
dataDir: path.resolve(env.VCH_DATA_DIR || './data'),
|
|
isProduction: env.NODE_ENV === 'production',
|
|
};
|
|
}
|