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

- 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:
2026-07-31 23:18:25 +02:00
parent f164a263ee
commit 4e0a8aae13
20 changed files with 3092 additions and 5 deletions

21
backend/src/config.js Normal file
View 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',
},
}
}