xml-pipeline/bloxserver/.env.example
dullfig a5c00c1e90 Add BloxServer API scaffold + architecture docs
BloxServer API (FastAPI + SQLAlchemy async):
- Database models: users, flows, triggers, executions, usage tracking
- Clerk JWT auth with dev mode bypass for local testing
- SQLite support for local dev, PostgreSQL for production
- CRUD routes for flows, triggers, executions
- Public webhook endpoint with token auth
- Health/readiness endpoints
- Pydantic schemas with camelCase aliases for frontend
- Docker + docker-compose setup

Architecture documentation:
- Librarian architecture with RLM-powered query engine
- Stripe billing integration (usage-based, trials, webhooks)
- LLM abstraction layer (rate limiting, semantic cache, failover)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 22:04:25 -08:00

54 lines
2.3 KiB
Text

# BloxServer API Environment Variables
# Copy this file to .env and fill in the values
# =============================================================================
# Environment
# =============================================================================
ENV=development
# ENV=production
# =============================================================================
# Database (PostgreSQL)
# =============================================================================
DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:5432/bloxserver
# Set to true to auto-create tables on startup (disable in production)
AUTO_CREATE_TABLES=true
# =============================================================================
# Clerk Authentication
# =============================================================================
CLERK_ISSUER=https://your-clerk-instance.clerk.accounts.dev
CLERK_AUDIENCE=your-clerk-audience
# =============================================================================
# Stripe Billing
# =============================================================================
STRIPE_SECRET_KEY=sk_test_...
STRIPE_WEBHOOK_SECRET=whsec_...
# =============================================================================
# API Key Encryption
# =============================================================================
# Generate with: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
API_KEY_ENCRYPTION_KEY=your-fernet-key-here
# =============================================================================
# CORS
# =============================================================================
CORS_ORIGINS=http://localhost:3000,https://app.openblox.ai
# =============================================================================
# Webhooks
# =============================================================================
WEBHOOK_BASE_URL=https://api.openblox.ai/webhooks
# =============================================================================
# Redis (optional, for caching/rate limiting)
# =============================================================================
# REDIS_URL=redis://localhost:6379
# =============================================================================
# Docs
# =============================================================================
ENABLE_DOCS=true