Compare commits

..

2 Commits

Author SHA1 Message Date
de5b0f671a Merge pull request 'feat(openwebui): add web search config and pipelines secret' (#105) from dev into main
Reviewed-on: #105
2026-07-16 13:17:01 +00:00
gyurix
7ffb4a598a feat(openwebui): add web search config and pipelines secret
- Introduce `PIPELINES_API_KEY` in the secrets file to secure pipelines communication
- Replace hardcoded RAG and web search URLs with template variables, enabling flexible configuration
- Add new template variables (`ENABLE_WEB_SEARCH`, `WEB_SEARCH_ENGINE`, `WEB_LOADER_ENGINE`, `SEARXNG_QUERY_URL`, `EXTERNAL_WEB_LOADER_URL`) with defaults
- Include OpenWebUI secret env file in the service definition for consistent secret injection
- Set `ENABLE_PERSISTENT_CONFIG` to false to align with the parametrized deployment approach

These changes decouple service endpoints from the deployment template, allowing users to easily customize web search and RAG integrations without modifying service definitions.
2026-07-16 15:08:13 +02:00
3 changed files with 52 additions and 11 deletions
+3
View File
@@ -5,6 +5,9 @@
"POSTGRES_PASSWORD": "#POSTGRES_PASSWORD", "POSTGRES_PASSWORD": "#POSTGRES_PASSWORD",
"POSTGRES_ROOT_PASSWORD": "#POSTGRES_ROOT_PASSWORD" "POSTGRES_ROOT_PASSWORD": "#POSTGRES_ROOT_PASSWORD"
}, },
"openwebuipipelines": {
"PIPELINES_API_KEY": "#PIPELINES_API_KEY"
},
"openwebuisearxng": { "openwebuisearxng": {
"SEARXNG_SECRET": "#SEARXNG_SECRET" "SEARXNG_SECRET": "#SEARXNG_SECRET"
}, },
+13 -10
View File
@@ -130,6 +130,9 @@
"QDRANT_URI": "http://openwebuiqdrant-app:6333" "QDRANT_URI": "http://openwebuiqdrant-app:6333"
} }
], ],
"ENV_FILES": [
"/etc/user/secret/openwebui/openwebui.json"
],
"EXTRA": "--restart always", "EXTRA": "--restart always",
"DEPEND": [], "DEPEND": [],
"START_ON_BOOT": "false", "START_ON_BOOT": "false",
@@ -221,32 +224,32 @@
} }
], ],
"ENVS": [ "ENVS": [
{
"ENABLE_PERSISTENT_CONFIG": "false"
},
{ {
"OPENAI_API_BASE_URL": "#OPENAI_API_BASE_URL" "OPENAI_API_BASE_URL": "#OPENAI_API_BASE_URL"
}, },
{ {
"VECTOR_DB": "qdrant" "VECTOR_DB": "qdrant"
}, },
{
"QDRANT_HOST": "openwebuiqdrant-app"
},
{
"QDRANT_PORT": "6333"
},
{ {
"QDRANT_URI": "http://openwebuiqdrant-app:6333" "QDRANT_URI": "http://openwebuiqdrant-app:6333"
}, },
{ {
"ENABLE_RAG_PIPELINE": "True" "ENABLE_WEB_SEARCH": "#ENABLE_WEB_SEARCH"
}, },
{ {
"RAG_PIPELINE_URL": "http://openwebuipipelines-app:9099/v1" "WEB_SEARCH_ENGINE": "#WEB_SEARCH_ENGINE"
}, },
{ {
"WEB_SEARCH_ENGINE": "http://openwebuisearxng-app:8080/search?q=<query>" "WEB_LOADER_ENGINE": "#WEB_LOADER_ENGINE"
}, },
{ {
"EXTERNAL_WEB_LOADER_URL": "http://openwebuicrawl4ai-app:11235" "SEARXNG_QUERY_URL": "#SEARXNG_QUERY_URL"
},
{
"EXTERNAL_WEB_LOADER_URL": "#EXTERNAL_WEB_LOADER_URL"
} }
], ],
"ENV_FILES": [ "ENV_FILES": [
+35
View File
@@ -103,6 +103,41 @@
"value": "", "value": "",
"required": "true", "required": "true",
"generated": "random|sha256|20" "generated": "random|sha256|20"
},
{
"description": "Enable web search",
"key": "ENABLE_WEB_SEARCH",
"value": "true",
"info": "Optional web search enabling, keep it empty if you don't want it",
"advanced": "true"
},
{
"description": "Web search engine",
"key": "WEB_SEARCH_ENGINE",
"value": "searxng",
"info": "Optional web search engine Searxng, keep it empty if you don't want it or define any other if you have",
"advanced": "true"
},
{
"description": "External web search engine",
"key": "WEB_LOADER_ENGINE",
"value": "external",
"info": "If optional web search engine defined, keep it as is, otherwise keep it empty",
"advanced": "true"
},
{
"description": "Web",
"key": "SEARXNG_QUERY_URL",
"value": "http://openwebuisearxng-app:8080/search?q=<query>",
"info": "Optional web search engine Searxng, keep it empty if you don't want it",
"advanced": "true"
},
{
"description": "External web search engine",
"key": "EXTERNAL_WEB_LOADER_URL",
"value": "http://openwebuicrawl4ai-app:11235",
"info": "Optional crawl4ai application url, keep it as is, otherwise keep it empty",
"advanced": "true"
} }
] ]
} }