1f60f1c908
- 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
83 lines
3.2 KiB
Bash
83 lines
3.2 KiB
Bash
# Falah OS v1.3 Production Environment Template
|
|
# Copy this to .env and fill in the values
|
|
|
|
# =============================================================================
|
|
# CORE CONFIGURATION
|
|
# =============================================================================
|
|
NODE_ENV=production
|
|
DOMAIN=falah-os.com
|
|
PROTOCOL=https
|
|
|
|
# =============================================================================
|
|
# SECURITY - GENERATE WITH: openssl rand -base64 32
|
|
# =============================================================================
|
|
JWT_SECRET=CHANGE_ME_generate_secure_random_string
|
|
ENCRYPTION_KEY=CHANGE_ME_generate_secure_random_string
|
|
ADMIN_SECRET=CHANGE_ME_generate_secure_random_string
|
|
|
|
# =============================================================================
|
|
# DATABASE - UPDATE credentials for production
|
|
# =============================================================================
|
|
POSTGRES_HOST=postgres-primary
|
|
POSTGRES_PORT=5432
|
|
POSTGRES_USER=postgres
|
|
POSTGRES_PASSWORD=CHANGE_ME_strong_password
|
|
POSTGRES_DB=falahdb
|
|
|
|
# =============================================================================
|
|
# REDIS - UPDATE password for production
|
|
# =============================================================================
|
|
REDIS_HOST=redis-master
|
|
REDIS_PORT=6379
|
|
REDIS_PASSWORD=CHANGE_ME_strong_password
|
|
|
|
# =============================================================================
|
|
# SERVICE URLs (Internal)
|
|
# =============================================================================
|
|
UMMAHID_URL=http://ummahid:3000
|
|
WALLET_URL=http://wallet:3000
|
|
RAMZ_URL=http://ramz:3000
|
|
MOCKNET_URL=http://mocknet:3000
|
|
|
|
# =============================================================================
|
|
# WALLET SERVICE
|
|
# =============================================================================
|
|
PROTOCOL_FEE_PERCENT=1.5
|
|
|
|
# =============================================================================
|
|
# RAMZ CONTRACT ENGINE
|
|
# =============================================================================
|
|
SHARIAH_RULES=NO_RIBA,NO_GHARAR,NO_MAYSIR,HALAL_COMMODITY,ASSET_BACKED,MUTUAL_CONSENT,NO_BAI_INAH
|
|
|
|
# =============================================================================
|
|
# BACKUP CONFIGURATION
|
|
# =============================================================================
|
|
BACKUP_DIR=/backups
|
|
S3_BUCKET=falah-os-backups
|
|
RETENTION_DAYS=30
|
|
|
|
# =============================================================================
|
|
# MONITORING
|
|
# =============================================================================
|
|
GRAFANA_PASSWORD=CHANGE_ME_strong_password
|
|
ALERT_EMAIL=alerts@falah-os.com
|
|
SLACK_WEBHOOK_URL=
|
|
|
|
# =============================================================================
|
|
# CDN & EXTERNAL SERVICES
|
|
# =============================================================================
|
|
CDN_API_KEY=
|
|
CDN_ZONE_ID=
|
|
|
|
# =============================================================================
|
|
# LOGGING
|
|
# =============================================================================
|
|
LOG_LEVEL=info
|
|
LOG_FORMAT=json
|
|
|
|
# =============================================================================
|
|
# FEATURE FLAGS
|
|
# =============================================================================
|
|
ENABLE_MOCKNET=false
|
|
ENABLE_CHAOS_TESTING=false
|
|
ENABLE_DEBUG=false |