Milstolpe 1: skelett — Fastify-backend med login, Vue-frontend (mörkt Jellyseerr-tema), Dockerfile
All checks were successful
build-and-push / build (push) Successful in 32s
All checks were successful
build-and-push / build (push) Successful in 32s
- backend: /api/health, /api/login|logout|session, sessionscookie, timingSafeEqual-lösenordskoll, allt annat under /api kräver inloggning, serverar byggd frontend med SPA-fallback; 4 tester (node:test) - frontend: Vue 3 + Vite, login-sida, Upptäck-skal, sökfält (stub), mörkt tema enligt Jellyseerr-förlagan - docker: multi-stage arm64-image; config-plumbing för Lidarr/Jellyfin/ Gemini via env (Jellyfin-historik prioriterad som signal per Björn) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01824ZrvG2mDYYrmwqypLNup
This commit is contained in:
21
backend/src/config.js
Normal file
21
backend/src/config.js
Normal file
@@ -0,0 +1,21 @@
|
||||
export function loadConfig(env = process.env) {
|
||||
return {
|
||||
port: Number(env.PORT ?? 3000),
|
||||
host: env.HOST ?? '0.0.0.0',
|
||||
appPassword: env.APP_PASSWORD ?? '',
|
||||
sessionSecret: env.SESSION_SECRET ?? '',
|
||||
dataDir: env.DATA_DIR ?? '/data',
|
||||
lidarr: {
|
||||
url: env.LIDARR_URL ?? 'http://lidarr:8686',
|
||||
apiKey: env.LIDARR_API_KEY ?? '',
|
||||
},
|
||||
jellyfin: {
|
||||
url: env.JELLYFIN_URL ?? 'http://jellyfin:8096',
|
||||
apiKey: env.JELLYFIN_API_KEY ?? '',
|
||||
},
|
||||
gemini: {
|
||||
apiKey: env.GEMINI_API_KEY ?? '',
|
||||
model: env.GEMINI_MODEL ?? 'gemini-2.5-flash',
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user