Configuration
This page lists only settings that exist today. A packaged install with documented values for every service (Foundry Infra) is planned; until then the local stack is the reference setup, and each service’s README in the backend repository lists its full configuration.
Where configuration lives
Section titled “Where configuration lives”- Services are configured with environment variables (Spring Boot properties).
- On the local stack, cloud credentials go in a git-ignored
.envfile in the backend repository, created from.devcontainer/env.template. Foundry UI reads.env.local, created from its.devcontainer/env.local.template. - Never commit a
.envfile. Keep secrets in your secret store and inject them as environment variables.
Models
Section titled “Models”| Setting | Effect |
|---|---|
AZURE_OPENAI_ENDPOINT, AZURE_OPENAI_API_KEY | Use Azure OpenAI or Azure AI Foundry for chat and embeddings. On the local stack, leaving the key unset switches chat and indexing to local models. |
LOCAL_LLM_BASE_URL | The OpenAI-compatible endpoint for local models. Default http://host.docker.internal:1234/v1 (LM Studio on the host). |
See Local models with LM Studio.
Vector store and documents
Section titled “Vector store and documents”| Setting | Effect |
|---|---|
| pgvector (default) | Vectors in PostgreSQL. The vector dimensions must match the embedding model, for example 768 for the local nomic model. |
AZURE_SEARCH_ENDPOINT, AZURE_SEARCH_INDEX and its key | Use Azure AI Search as the vector index. |
AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT and its key | Layout parsing of uploaded files. |
Website crawling
Section titled “Website crawling”web-crawler (control plane):
| Variable | Default | Notes |
|---|---|---|
WEB_CRAWLER_PORT | 8080 | 8094 on the local stack |
MONGODB_URI, DB_NAME | webcrawlerdb | its own database |
URLFRONTIER_HOST, URLFRONTIER_PORT | localhost, 7071 | |
KNOWLEDGE_BASE_URL | http://localhost:8084 | |
RABBITMQ_* | the same broker as the crawler topology | |
AZURE_STORAGE_* | the blob container the topology writes to |
web-crawler-topology (fetcher):
| Variable | Default | Notes |
|---|---|---|
URLFRONTIER_HOST, URLFRONTIER_PORT | localhost, 7071 | |
RABBITMQ_HOST, RABBITMQ_PORT, RABBITMQ_VHOST and credentials | localhost, 5672, / | |
AZURE_STORAGE_CONNECTION_STRING, AZURE_STORAGE_CONTAINER | required | the knowledge base’s blob container |
WEB_CRAWLER_LLM_BASE_URL, WEB_CRAWLER_LLM_API_KEY, WEB_CRAWLER_LLM_MODEL | empty (AI extraction off) | any OpenAI-compatible endpoint |
HEALTH_PORT | 8080 | GET /healthz: 200 while running, 503 while stopping |
Gateway
Section titled “Gateway”The gateway strips the /api/<service> prefix: /api/agent/v1/default/... reaches the agent service as /v1/default/.... The local stack uses Caddy on port 8090 with these prefixes: agent, application, model, kb, prompt, tools, user, web-crawler, deployment, permissions. Foundry UI finds the gateway through VITE_BACKEND_API (locally http://localhost:8090).
Routes that stream chat answers must not be buffered by the gateway.
Identity provider
Section titled “Identity provider”Sign-in is OpenID Connect (authorization code with PKCE), and the services validate every bearer token against the provider’s keys. The local stack runs Authentik with a ready-made configuration.
- The browser and the services must see the same issuer URL, because the issuer is validated.
- Register exact redirect URIs for Foundry UI. With Authentik, a regular-expression redirect URI breaks the discovery endpoint for browsers.
- A signed-in user must be a registered platform user and a member of the subscription in the request path. See Subscriptions and tenants.
Local ports
Section titled “Local ports”| Port | What |
|---|---|
| 8080 | Foundry UI (the next free port if taken) |
| 8090 | Gateway |
| 8081–8089 | agent, app, chat, knowledge-base, indexer, prompt, tools, user, builtin-tools |
| 8091–8094 | authorization, permissions, deployment, web-crawler |
| 9000 | Authentik |
| 1234 | LM Studio |
| 7071 | URLFrontier (gRPC) |
| 8099 | Fixture website |