|
| 1 | +# eOffice Environment Configuration |
| 2 | +# Copy this file to .env and configure as needed |
| 3 | + |
| 4 | +# --- Server --- |
| 5 | +PORT=3001 |
| 6 | +NODE_ENV=development |
| 7 | +# NODE_ENV=production # Set for production deployment |
| 8 | + |
| 9 | +# --- Security --- |
| 10 | +# REQUIRED in production. Generate with: openssl rand -hex 64 |
| 11 | +JWT_SECRET= |
| 12 | + |
| 13 | +# --- CORS --- |
| 14 | +# Comma-separated list of allowed origins |
| 15 | +# CORS_ORIGINS=http://localhost:5173,http://localhost:5174 |
| 16 | + |
| 17 | +# --- Storage --- |
| 18 | +# Options: sqlite (default), file |
| 19 | +STORAGE_BACKEND=sqlite |
| 20 | +# Custom SQLite database path (default: ~/.eoffice/eoffice.db) |
| 21 | +# EOFFICE_DB_PATH=/path/to/eoffice.db |
| 22 | + |
| 23 | +# --- AI Providers (configure at least one for AI features) --- |
| 24 | +# OpenAI (recommended for best results) |
| 25 | +OPENAI_API_KEY= |
| 26 | +# OPENAI_MODEL=gpt-4o-mini |
| 27 | + |
| 28 | +# Anthropic Claude |
| 29 | +ANTHROPIC_API_KEY= |
| 30 | +# ANTHROPIC_MODEL=claude-3-haiku-20240307 |
| 31 | + |
| 32 | +# Ollama (local LLM - no API key needed) |
| 33 | +# OLLAMA_URL=http://localhost:11434 |
| 34 | +# OLLAMA_MODEL=llama3.2 |
| 35 | + |
| 36 | +# EAI Hardware (eBot custom hardware) |
| 37 | +# EAI_BASE_URL=http://localhost:8420 |
| 38 | + |
| 39 | +# --- Logging --- |
| 40 | +# Options: trace, debug, info, warn, error, fatal |
| 41 | +LOG_LEVEL=info |
| 42 | + |
| 43 | +# --- Email (IMAP/SMTP for eMail app) --- |
| 44 | +# IMAP_HOST=imap.gmail.com |
| 45 | +# IMAP_PORT=993 |
| 46 | +# SMTP_HOST=smtp.gmail.com |
| 47 | +# SMTP_PORT=587 |
| 48 | + |
| 49 | +# --- Backups --- |
| 50 | +# Directory for SQLite backups (default: ~/.eoffice/backups) |
| 51 | +# EOFFICE_BACKUP_DIR=/path/to/backups |
| 52 | +# Maximum number of backups to keep (default: 7) |
| 53 | +# EOFFICE_MAX_BACKUPS=7 |
| 54 | +# Auto-backup interval in hours (default: 24) |
| 55 | +# EOFFICE_BACKUP_INTERVAL_HOURS=24 |
| 56 | + |
| 57 | +# --- Clustering --- |
| 58 | +# Number of worker processes (default: number of CPU cores) |
| 59 | +# CLUSTER_WORKERS=4 |
| 60 | + |
| 61 | +# --- Sentry Crash Monitoring --- |
| 62 | +# Get your DSN from https://sentry.io/settings/projects/ |
| 63 | +# SENTRY_DSN=https://examplePublicKey@o0.ingest.sentry.io/0 |
| 64 | +# SENTRY_TRACES_RATE=0.1 |
| 65 | +# SENTRY_PROFILES_RATE=0.1 |
| 66 | +# Frontend apps: set VITE_SENTRY_DSN in each app's .env |
| 67 | +# VITE_SENTRY_DSN=https://examplePublicKey@o0.ingest.sentry.io/0 |
0 commit comments