Skip to content

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.

  • Services are configured with environment variables (Spring Boot properties).
  • On the local stack, cloud credentials go in a git-ignored .env file in the backend repository, created from .devcontainer/env.template. Foundry UI reads .env.local, created from its .devcontainer/env.local.template.
  • Never commit a .env file. Keep secrets in your secret store and inject them as environment variables.
SettingEffect
AZURE_OPENAI_ENDPOINT, AZURE_OPENAI_API_KEYUse 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_URLThe OpenAI-compatible endpoint for local models. Default http://host.docker.internal:1234/v1 (LM Studio on the host).

See Local models with LM Studio.

SettingEffect
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 keyUse Azure AI Search as the vector index.
AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT and its keyLayout parsing of uploaded files.

web-crawler (control plane):

VariableDefaultNotes
WEB_CRAWLER_PORT80808094 on the local stack
MONGODB_URI, DB_NAMEwebcrawlerdbits own database
URLFRONTIER_HOST, URLFRONTIER_PORTlocalhost, 7071
KNOWLEDGE_BASE_URLhttp://localhost:8084
RABBITMQ_*the same broker as the crawler topology
AZURE_STORAGE_*the blob container the topology writes to

web-crawler-topology (fetcher):

VariableDefaultNotes
URLFRONTIER_HOST, URLFRONTIER_PORTlocalhost, 7071
RABBITMQ_HOST, RABBITMQ_PORT, RABBITMQ_VHOST and credentialslocalhost, 5672, /
AZURE_STORAGE_CONNECTION_STRING, AZURE_STORAGE_CONTAINERrequiredthe knowledge base’s blob container
WEB_CRAWLER_LLM_BASE_URL, WEB_CRAWLER_LLM_API_KEY, WEB_CRAWLER_LLM_MODELempty (AI extraction off)any OpenAI-compatible endpoint
HEALTH_PORT8080GET /healthz: 200 while running, 503 while stopping

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.

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.
PortWhat
8080Foundry UI (the next free port if taken)
8090Gateway
8081–8089agent, app, chat, knowledge-base, indexer, prompt, tools, user, builtin-tools
8091–8094authorization, permissions, deployment, web-crawler
9000Authentik
1234LM Studio
7071URLFrontier (gRPC)
8099Fixture website