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
22 lines
604 B
JavaScript
22 lines
604 B
JavaScript
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',
|
|
},
|
|
}
|
|
}
|