Configuration
Environment Variables
Server
| Variable | Default | Description |
|---|---|---|
SERVER_PORT | 8080 | HTTP server port |
SERVER_HOST | 0.0.0.0 | HTTP server host |
GIN_MODE | debug | Gin mode (debug/release) |
Database
| Variable | Default | Description |
|---|---|---|
DB_HOST | localhost | PostgreSQL host |
DB_PORT | 5432 | PostgreSQL port |
DB_USER | postgres | PostgreSQL user |
DB_PASSWORD | — | PostgreSQL password |
DB_NAME | omnidev | Database name |
Redis
| Variable | Default | Description |
|---|---|---|
REDIS_HOST | localhost | Redis host |
REDIS_PORT | 6379 | Redis port |
REDIS_PASSWORD | — | Redis password |
LLM Providers
| Variable | Default | Description |
|---|---|---|
OPENAI_API_KEY | — | OpenAI API key |
OPENAI_BASE_URL | https://api.openai.com/v1 | OpenAI API base URL |
ANTHROPIC_API_KEY | — | Anthropic API key |
Embedding
| Variable | Default | Description |
|---|---|---|
EMBEDDING_PROVIDER | openai | Embedding provider (openai/jina) |
EMBEDDING_MODEL | text-embedding-3-small | Embedding model name |
EMBEDDING_DIMENSION | 1536 | Embedding dimension |
Configuration File
You can also use a .env file in the project root:
bash
cp .env.example .env
# Edit .env with your values