LifeMate — Personal, Family & Learning Companion

infra/lifeguide-github-pages-qa
chore/phase1-repository-cleanup deploy/stable-web-apk deployment-static design/mobile-accessibility-v2 design/mobile-navigation-review docs/child-education-access-decision docs/offline-data-rescue-options docs/owner-guide-and-delivery-plan docs/phase1-policy-options docs/public-review-live-2026-10-15 feat/aparat-learning-library feat/child-device-safety feat/child-identity-schema feat/flutter-mobile-navigation feat/learning-content-operations feat/local-signing-preflight feat/online-family-stage0 feat/personal-encrypted-recovery feat/private-planner-series-api feat/public-review-page feat/standalone-weekly-planner feat/weekly-planner-android final-feature-1/iran-family-school fix/auth-abuse-expiry-safety fix/auth-expiry-after-lock fix/backend-request-safety fix/lifeguide-bootstrap-naming-ci fix/lifeguide-pages-qa-base-preflight fix/lifeguide-qa-pages-env-deployment fix/local-task-persistence fix/managed-child-session-boundary fix/personal-jalali-dates fix/personal-notification-controls fix/personal-upgrade-delivery-guard fix/sms-approval-gates fix/study-duration-display infra/cloudflare-neon-migration infra/lifeguide-cloudflare-qa infra/lifeguide-github-pages-qa infra/lifeguide-supabase-qa main phase-1/foundation-completion phase-2/product-foundation-identity phase-3/planner-school-family-core phase-4/ai-learning-wellbeing phase-5/hardening-observability-release test/android-reminder-acceptance test/personal-notification-settings test/personal-recovery-acceptance test/role-entry-apk
example 50 lines 1.92 KB
Raw
1 # LifeGuide self-hosted stack. Copy to .env; never commit .env or TLS keys.
2 COMPOSE_PROJECT_NAME=lifeguide-stage0
3 POSTGRES_DB=lifemate
4 POSTGRES_USER=lifeguide
5 POSTGRES_PASSWORD=CHANGE_ME_TO_A_RANDOM_SECRET
6 # Bootstrap credentials above are only for postgres and short-lived ops jobs.
7 # Do not reuse them in API/migrations/backups. Names are protocol identifiers.
8 API_DB_USER=lifeguide_api
9 API_DB_PASSWORD=CHANGE_ME_TO_A_DIFFERENT_RANDOM_SECRET
10 MIGRATOR_DB_USER=lifeguide_migrator
11 MIGRATOR_DB_PASSWORD=CHANGE_ME_TO_A_THIRD_RANDOM_SECRET
12 BACKUP_DB_USER=lifeguide_backup
13 BACKUP_DB_PASSWORD=CHANGE_ME_TO_A_FOURTH_RANDOM_SECRET
14 JWT_SECRET=CHANGE_ME_TO_AT_LEAST_32_RANDOM_CHARACTERS
15 PUBLIC_APP_URL=https://192.168.1.10
16 CORS_ORIGINS=https://192.168.1.10
17 HTTPS_BIND=0.0.0.0
18 HTTPS_PORT=443
19 # Dedicated API/gateway network; change both values if your LAN/VPN overlaps.
20 PROXY_SUBNET=172.30.86.0/24
21 GATEWAY_PROXY_IP=172.30.86.10
22 TLS_CERT_PATH=./deployment/tls/server.pem
23 TLS_KEY_PATH=./deployment/tls/server-key.pem
24 API_IMAGE=lifeguide-api:local
25 WEB_IMAGE=lifeguide-web:local
26 NODE_ENV=production
27 LOG_REQUESTS=false
28 # Session refresh/logout are separately bounded; sensitive auth keeps its own limit.
29 RATE_LIMIT_SESSION_MAX=60
30 RATE_LIMIT_SESSION_WINDOW_SECONDS=600
31 # Delivery is unavailable until an operator configures an approved provider.
32 EMAIL_FROM=
33 SMTP_HOST=
34 SMTP_PORT=587
35 SMTP_SECURE=false
36 SMTP_USER=
37 SMTP_PASSWORD=
38 SMS_PROVIDER=disabled
39 # For an approved Kavenegar VerifyLookup template, opt in with SMS_PROVIDER=kavenegar.
40 # Enter the secret API key in server-side environment / secret manager ONLY.
41 # Never put it in the public GitHub repo, Flutter, PWA or logs.
42 KAVENEGAR_API_KEY=
43 KAVENEGAR_TEMPLATE=lifeguideotp
44 # Alternative: owner-selected generic HTTPS SMS webhook.
45 # Leave these blank while disabled. Store the real token only in private env/secrets.
46 SMS_PROVIDER_URL=
47 SMS_PROVIDER_TOKEN=
48 BACKUP_SCHEDULE=0 2 * * *
49 BACKUP_KEEP_DAYS=14
50 BACKUP_MAX_AGE_SECONDS=93600