Files
falah-mobile/.env.example
T
wmj2024 1f60f1c908 feat: micro-learning module with seed data
- Add Course and Module models to Prisma schema
- Create seed-learn.json with Daily Fiqh for Beginners (5 modules)
- Create seed-learn.js with Hermes patch (strip id/courseId from create)
- Add /learn page with course listing
- Add /learn/[courseSlug]/[moduleId] page with content + quiz
- Quiz data stored as JSON string per module
- Content rendered as markdown with Key Concept, Details, Reflection, Action Step sections

TODO:
- Add audio player component for listen toggle
- Add progress tracking per user
- Add actual quiz scoring/validation
- Connect to TTS pipeline for audio generation
2026-06-28 04:27:21 +08:00

92 lines
2.8 KiB
Bash

# Falah OS v1.3 — Environment Variables
# Copy to .env and fill in all values before running.
# Generate secrets with: openssl rand -base64 32
# =============================================================================
# REQUIRED — must be set before starting
# =============================================================================
# JWT signing secret — min 32 random characters
JWT_SECRET=
# Encryption key for sensitive data — min 32 random characters
ENCRYPTION_KEY=
# Admin secret for privileged operations
ADMIN_SECRET=
# PostgreSQL password
POSTGRES_PASSWORD=
# Redis password
REDIS_PASSWORD=
# iBaaS API Key for EE Gateway
IBAAS_API_KEY=falah-os-ibaas-key-2026
# =============================================================================
# OPTIONAL — have sensible defaults
# =============================================================================
NODE_ENV=production
# Domain name and protocol for URL generation
DOMAIN=
PROTOCOL=https
# Protocol fee taken by Falah OS (default 1.5%)
PROTOCOL_FEE_PERCENT=1.5
# Shariah rules enforced by RAMZ (comma-separated, no spaces)
SHARIAH_RULES=NO_RIBA,NO_GHARAR,NO_MAYSIR,HALAL_COMMODITY,ASSET_BACKED,MUTUAL_CONSENT,NO_BAI_INAH
# Set to true only in a controlled test environment
ENABLE_CHAOS_TESTING=false
# =============================================================================
# LOGGING (optional)
# =============================================================================
LOG_LEVEL=info
LOG_FORMAT=json
# =============================================================================
# POSTGRES (optional overrides)
# =============================================================================
POSTGRES_USER=postgres
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
# Derived from the above; override per-service database name as needed
DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/falahdb
# =============================================================================
# REDIS (optional overrides)
# =============================================================================
REDIS_HOST=redis
REDIS_PORT=6379
# =============================================================================
# FEATURE FLAGS (optional)
# =============================================================================
ENABLE_MOCKNET=false
ENABLE_DEBUG=false
# =============================================================================
# MONITORING (optional)
# =============================================================================
GRAFANA_PASSWORD=
ALERT_EMAIL=
SLACK_WEBHOOK_URL=
# =============================================================================
# BACKUP (optional)
# =============================================================================
BACKUP_DIR=/backups
S3_BUCKET=
RETENTION_DAYS=30