Grundgerüst mit Server, PIN-Anmeldung und Docker-Deploy aufbauen
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>
This commit is contained in:
1 parent
8ed1396b1c
commit
f7d249f28b
23 files changed
+4456
-1358
No files matched your search
@@ -0,0 +1,12 @@
|
||||
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',
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user