Skip to content

Configure your tracelane installation

The following environment variables are required to configure your Tracelane installation:

.env
# === REQUIRED VARIABLES ===
# Database configuration
# Make sure to replace the placeholders with your actual database credentials
DATABASE_URL="postgresql://<db-user>:<db-password>@<db-ip>:<db-port>/<db-name>"

Additionally, you can set the following optional environment variables to customize your installation.

.env
# === OPTIONAL VARIABLES (to enable certain features) ===
# == LLM Integration ==
LLM_PROVIDER="<openai | ollama>"
OPENAI_API_KEY="<your-openai-api-key>" # Required if using OpenAI
OLLAMA_BASE_URL="http://<ollama-server-ip>:11434" # Required if using Ollama
OLLAMA_MODEL_IMPROVE="<model-name>" # Name of the model tracelane uses to improve single requirements
OLLAMA_MODEL_CHAT_TITLE="<model-name>" # Name of the model tracelane uses to generate chat titles
# === OPTIONAL VARIABLES (will be generated automatically for you if not provided) ===
# JWT keys (will be generated automatically for you if not provided)
ACCESS_TOKEN_PUBLIC_KEY="<base64-encoded-RSA-4096-public-key>"
ACCESS_TOKEN_PRIVATE_KEY="<base64-encoded-RSA-4096-private-key>"
# Secret used for various encryption tasks
FILE_SECRET="<random-string-used-to-generate-temporal-file-access-tokens>"
METRICS_SECRET="<random-string-used-to-secure-metrics-endpoint>"