1 Resources connections_config
Forgejo Actions edited this page 2026-11-26 06:34:52 +00:00

openwebui_connections_config (Resource)

Manages the two instance-wide connection switches of Open WebUI, ENABLE_DIRECT_CONNECTIONS and ENABLE_BASE_MODELS_CACHE.

POST /api/v1/configs/connections writes both keys on every request, so both attributes are required. The model endpoints themselves live in openwebui_ollama_connections and openwebui_openai_connections.

Example Usage

resource "openwebui_connections_config" "example" {
  enable_direct_connections = true
  enable_base_models_cache  = true
}

Schema

Required

  • enable_base_models_cache (Boolean) Whether Open WebUI caches the model list each backend returns, rather than asking every backend again on each request. Stored as ENABLE_BASE_MODELS_CACHE.
  • enable_direct_connections (Boolean) Whether a user may add their own model endpoint under Settings, which their browser then calls directly. Stored as ENABLE_DIRECT_CONNECTIONS.

Read-Only

  • id (String) Identifier of this singleton resource. Always connections.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# Open WebUI holds one direct-connections configuration, so this resource is a
# singleton. Import it under its fixed id.
terraform import openwebui_connections_config.example connections