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

openwebui_admin_config (Resource)

Manages the instance-wide administrative settings of Open WebUI: signup, the default user role, API keys, token expiry, and the feature switches for folders, automations, channels, calendar, memories, and notes.

Open WebUI drops a value it considers invalid and still answers 200, so the default user role, the channel response mode, and the token expiry are validated here instead. A rejected value fails the plan rather than applying as a silent no-op.

Example Usage

# Settings this resource does not name keep the values the instance already
# holds, so a configuration can manage as few of them as it likes.
resource "openwebui_admin_config" "example" {
  webui_url         = "https://chat.example.com"
  enable_signup     = false
  default_user_role = "pending"
  jwt_expires_in    = "7d"

  enable_channels             = true
  channel_model_response_mode = "thread"
  enable_notes                = true
  enable_folders              = true

  # Open WebUI stores 0 as empty for these three, so an empty string is the way
  # to say "no limit".
  folder_max_file_count   = "50"
  automation_max_count    = ""
  automation_min_interval = "300"

  pending_user_overlay_title   = "Waiting for approval"
  pending_user_overlay_content = "An administrator reviews every new account."
}

Schema

Optional

  • admin_email (String) Contact address shown to users waiting for approval.
  • api_keys_allowed_endpoints (String) Comma-separated endpoints an API key may call. Applies when enable_api_keys_endpoint_restrictions is true.
  • automation_max_count (String) Maximum number of automations per user, as a string. Empty means no limit.
  • automation_min_interval (String) Shortest interval an automation may run on, in seconds, as a string. Empty means no floor.
  • channel_model_response_mode (String) Where a model answers in a channel: thread or channel.
  • default_group_id (String) Identifier of the group every new account joins. Empty for none.
  • default_user_role (String) Role given to a new account: pending, user, or admin.
  • enable_api_keys (Boolean) Whether users can mint API keys.
  • enable_api_keys_endpoint_restrictions (Boolean) Whether API keys are limited to the endpoints named in api_keys_allowed_endpoints.
  • enable_automations (Boolean) Whether users can create automations.
  • enable_calendar (Boolean) Whether the calendar feature is available.
  • enable_channels (Boolean) Whether the channels feature is available. The openwebui_channel resource needs this on.
  • enable_community_sharing (Boolean) Whether users can share chats to the Open WebUI community site.
  • enable_folders (Boolean) Whether users can organise chats into folders.
  • enable_memories (Boolean) Whether the memories feature is available.
  • enable_memory_system_context (Boolean) Whether memories are added to the system context of a chat.
  • enable_message_rating (Boolean) Whether users can rate model responses.
  • enable_notes (Boolean) Whether the notes feature is available.
  • enable_signup (Boolean) Whether visitors can create their own accounts.
  • enable_user_status (Boolean) Whether users publish an online status.
  • enable_user_webhooks (Boolean) Whether users can register their own webhooks.
  • folder_max_file_count (String) Maximum number of files in a folder, as a string. Empty means no limit; Open WebUI stores 0 as empty, so it is not a value this attribute can hold.
  • jwt_expires_in (String) Session token lifetime, e.g. 4h or 30d. Use -1 for no expiry.
  • pending_user_overlay_content (String) Body text shown to an account that is still pending approval.
  • pending_user_overlay_title (String) Heading shown to an account that is still pending approval.
  • response_watermark (String) Watermark text added to copied model responses.
  • show_admin_details (Boolean) Whether the sign-in page shows the administrator's contact details.
  • webui_url (String) Public URL of this Open WebUI instance.

Read-Only

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

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# Open WebUI holds one set of admin settings, so this resource is a singleton.
# Import it under its fixed id.
terraform import openwebui_admin_config.example admin