# ============================================================
# Panacea Unified Environment Configuration
# Single .env file for BOTH Docker Compose and Standalone Backend
# ============================================================

# ---- PostgreSQL Database Credentials ----
POSTGRES_USER=postgres
POSTGRES_PASSWORD=C1234spl
POSTGRES_DB=panaceadb
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_SCHEMA=acu_content

# ---- Database Connection URLs (Used by FastAPI & SQLAlchemy) ----
DATABASE_URL=postgresql+asyncpg://postgres:C1234spl@localhost:5432/panaceadb
SYNC_DATABASE_URL=postgresql://postgres:C1234spl@localhost:5432/panaceadb

# ---- MinIO Object Storage ----
MINIO_ENDPOINT=localhost:9000
MINIO_ACCESS_KEY=minioadmin
MINIO_SECRET_KEY=minioadmin
MINIO_SECURE=false
MINIO_BUCKET=accupedia-media


MEDIA_PRESIGN_ENDPOINT=http://localhost:9000
MEDIA_STORAGE_ACCESS_KEY=minioadmin
MEDIA_STORAGE_SECRET_KEY=minioadmin
MEDIA_STORAGE_BUCKET=accupedia-media
MEDIA_STORAGE_REGION=us-east-1

# 15 minutes. Content responses must NOT cache the generated signed URL.
MEDIA_URL_TTL_SECONDS=900


# ---- JWT Security Config ----
JWT_SECRET=b4f8c9b3d0a2f4c9b3d0a2f4c9b3d0a2f4c9b3d0a2f4c9b3d0a2f4c9b3d0a2f4
ACCESS_TOKEN_EXPIRE_MINUTES=1440

# ---- Razorpay Test Credentials ----
RAZORPAY_KEY_ID=rzp_test_TOOYmPfB4pVq5M
RAZORPAY_KEY_SECRET=m4Fo48eCkffnPRlsAbMqqESf

# ---- Email / SMTP Credentials ----
SMTP_HOST=localhost
SMTP_PORT=1025
RESEND_API_KEY=re_YHvSXRCz_LrQYzEYEDVwoRiAgfJRsH6ya

# ---- App & Network Ports ----
ENVIRONMENT=development
BACKEND_PORT=8000
FRONTEND_PORT=3000
VITE_API_BASE=http://localhost:8000

