Skip to content

Configuration

All settings can be configured via CLI flags, environment variables, or a .env file.

Terminal window
# Server binding
fabric serve --host 0.0.0.0 --port 8080 --grpc-port 9090
# Database
fabric serve --database-url postgres://user:pass@host/db
# Authentication
fabric serve --jwt-secret $SUPABASE_JWT_SECRET --fabric-env production
# AI Providers
fabric serve --openai-api-key sk-... --anthropic-api-key sk-ant-...
fabric serve --ollama-enabled --ollama-url http://gpu-server:11434
fabric serve --comfyui-enabled --comfyui-url http://localhost:8188
fabric serve --onnx-model-dir /models --candle-enabled
Terminal window
# Worker configuration
fabric executor --concurrency 8 --worker-id gpu-worker-1
fabric executor --poll-interval 500 --lease-seconds 60 --max-retries 5
Env VarDefaultDescription
WORKER_IDrandom UUIDUnique worker identity
WORKER_CONCURRENCY4Max steps to claim per poll cycle
WORKER_POLL_INTERVAL500msHow often to check for work
WORKER_LEASE_SECONDS30Lease TTL before auto-expiry
WORKER_MAX_RETRIES3Max retry attempts per step
VariableDefaultDescription
HOST127.0.0.1HTTP bind address
PORT3001HTTP port
GRPC_PORT3002gRPC port
DATABASE_URLPostgres connection string
FABRIC_ENVdevelopmentEnvironment (development or production)
RUST_LOGinfoLog level filter
VariableDefaultDescription
JWT_SECRETSupabase JWT HS256 secret
FABRIC_ENVdevelopmentSet to production to disable dev headers
VariableDefaultDescription
OPENAI_API_KEYEnables OpenAI provider
OPENAI_BASE_URLhttps://api.openai.com/v1Custom OpenAI-compatible endpoint
ANTHROPIC_API_KEYEnables Anthropic provider
OLLAMA_ENABLEDfalseEnable Ollama provider
OLLAMA_URLhttp://localhost:11434Ollama server URL
WHISPER_URLWhisper server URL
COMFYUI_ENABLEDfalseEnable ComfyUI provider
COMFYUI_URLhttp://localhost:8188ComfyUI server URL
ONNX_MODEL_DIRONNX model directory
CANDLE_ENABLEDfalseEnable Candle provider
Terminal window
just infra-up # Full stack (Postgres + Ollama + Whisper + ComfyUI)
just infra-up-db # Postgres only
just infra-down # Stop everything
just infra-reset # Fresh start (delete volumes)
just infra-psql # psql shell
just infra-migrate # Run migrations
just ollama-pull <model> # Pull an Ollama model

Docker Compose profiles:

  • default — Postgres
  • ai — Postgres + Ollama + Whisper + ComfyUI
  • full — Everything