mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-09 10:50:35 -06:00
90 lines
3.7 KiB
Bash
90 lines
3.7 KiB
Bash
# Ollama URL for the backend to connect
|
|
# The path '/ollama' will be redirected to the specified backend URL
|
|
OLLAMA_BASE_URL='http://localhost:11434'
|
|
|
|
OPENAI_API_BASE_URL=''
|
|
OPENAI_API_KEY=''
|
|
|
|
# With WEBSOCKET_MANAGER=redis, room channels require PUBLISH, SUBSCRIBE and
|
|
# UNSUBSCRIBE/PING permissions plus channel ACLs &socketio and &socketio#*.
|
|
# Set false for shared-channel delivery. This must match on every instance;
|
|
# changing it requires a full fleet restart, not a rolling restart.
|
|
# WEBSOCKET_REDIS_ROOM_CHANNELS=true
|
|
|
|
# AUTOMATIC1111_BASE_URL="http://localhost:7860"
|
|
|
|
# For production, you should only need one host as
|
|
# fastapi serves the svelte-kit built frontend and backend from the same host and port.
|
|
# To test with CORS locally, you can set something like
|
|
# CORS_ALLOW_ORIGIN='http://localhost:5173;http://localhost:8080'
|
|
CORS_ALLOW_ORIGIN='*'
|
|
|
|
# Renewable sessions expire after this period without a refresh.
|
|
# SESSION_EXPIRES_IN='90d'
|
|
|
|
# MFA defaults; saved settings take precedence once persistent config is seeded.
|
|
ENABLE_MFA=false
|
|
MFA_ALLOW_OAUTH_BYPASS=false
|
|
MFA_ALLOW_TRUSTED_HEADER_BYPASS=false
|
|
|
|
# Set to false to keep memory tools enabled without adding memory context to the system context.
|
|
ENABLE_MEMORY_SYSTEM_CONTEXT=true
|
|
|
|
# Set to true to add compact row/column stats to parsed CSV retrieval context.
|
|
ENABLE_RAG_CSV_SUMMARY=false
|
|
|
|
# Retrieval defaults; saved settings take precedence once persistent config is seeded.
|
|
RAG_TOP_K=10
|
|
RAG_TOP_K_RERANKER=10
|
|
# Zero disables relevance score filtering.
|
|
RAG_RELEVANCE_THRESHOLD=0.0
|
|
# Always include full extracted text up to this character count per uploaded file.
|
|
# Only larger attachments switch to retrieval; this never truncates text. Set to 0 to always use retrieval.
|
|
RAG_FULL_TEXT_CHAR_THRESHOLD=50000
|
|
|
|
# Default character chunk size approximates MiniLM's 256-token window at 4 chars/token.
|
|
# This is an estimate, not a tokenizer-enforced limit.
|
|
# Saved settings take precedence. Reindex existing documents after changing chunking.
|
|
CHUNK_SIZE=1024
|
|
CHUNK_OVERLAP=100
|
|
|
|
# Set to true to preserve backing file records, storage blobs, and per-file vectors when files are removed from knowledge bases.
|
|
ENABLE_KNOWLEDGE_FILE_RETENTION=false
|
|
|
|
# Comma-separated chunk metadata keys to expose to the model alongside retrieved content.
|
|
RAG_SOURCE_METADATA_KEYS=''
|
|
|
|
# Master switch for internal Tools/Functions and external OpenAPI/MCP/Open Terminal plugins.
|
|
# All plugin switches require a restart; the master overrides all feature switches.
|
|
ENABLE_PLUGINS=true
|
|
# Set false to disable workspace Tools and their dependency installation.
|
|
ENABLE_TOOLS=true
|
|
# Set false to disable Functions (filters, pipes, actions, event functions) and their dependencies.
|
|
ENABLE_FUNCTIONS=true
|
|
# Set false to disable external tools and terminals, including personal direct connections.
|
|
ENABLE_TOOL_SERVERS=true
|
|
|
|
# Terminal metadata requests may start a container. Default: 60 seconds.
|
|
# When unset, inherits an explicitly configured AIOHTTP_CLIENT_TIMEOUT_TOOL_SERVER_DATA.
|
|
# Empty or 0 disables the timeout. Other tool-server metadata still defaults to 10 seconds.
|
|
# AIOHTTP_CLIENT_TIMEOUT_TERMINAL=60
|
|
|
|
# WARNING: * trusts forwarded headers from every connection. Use only behind a trusted
|
|
# proxy that sanitizes these headers and prevents direct access to the backend.
|
|
# Otherwise, set this to the IP addresses or networks of your trusted reverse proxies.
|
|
FORWARDED_ALLOW_IPS='*'
|
|
|
|
# DO NOT TRACK
|
|
SCARF_NO_ANALYTICS=true
|
|
DO_NOT_TRACK=true
|
|
ANONYMIZED_TELEMETRY=false
|
|
|
|
# Valkey Vector Store (requires VECTOR_DB=valkey)
|
|
# VALKEY_URL='valkey://localhost:6379'
|
|
# VALKEY_COLLECTION_PREFIX='open_webui'
|
|
# VALKEY_INDEX_TYPE='HNSW'
|
|
# VALKEY_DISTANCE_METRIC='COSINE'
|
|
# VALKEY_HNSW_M='16'
|
|
# VALKEY_HNSW_EF_CONSTRUCTION='200'
|
|
# VALKEY_HNSW_EF_RUNTIME='10'
|