Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 1 addition & 15 deletions learn2rag/ui/templates/compose/pipelines/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ services:
USER_PERMISSIONS_FEATURES_CODE_INTERPRETER: 'False'
USER_PERMISSIONS_FEATURES_IMAGE_GENERATION: 'False'
USER_PERMISSIONS_FEATURES_WEB_SEARCH: 'False'
#!!! {% if False and config.get("SIMPLE_AUTH") %}
# TODO: Upgrade openwebui and use this (WEBUI_ADMIN_EMAIL etc)
#!!! {% if config.get("SIMPLE_AUTH") %}
ENABLE_SIGNUP: 'False'
WEBUI_AUTH: 'True'
WEBUI_ADMIN_EMAIL: '{{config["SIMPLE_AUTH"].get("username", "")}}'
Expand All @@ -123,10 +122,8 @@ services:
# https://docs.openwebui.com/getting-started/env-configuration/#webui_auth
# "turning off authentication is only possible for fresh installations without any existing users"
ENABLE_SIGNUP: 'True'
#!!! {% if not config.get("SIMPLE_AUTH") %}
WEBUI_AUTH: 'False'
#!!! {% endif %}
#!!! {% endif %}
WEBUI_NAME: 'Learn2RAG'
#!!! {% if config.get("TLS") %}
UVICORN_SSL_CERTFILE: '{{ config["TLS"]["CERTFILE"] }}'
Expand All @@ -135,17 +132,6 @@ services:
healthcheck:
# TODO: We only support ['CMD', 'curl', '-f', ...]
test: ['CMD', 'curl', '-f', '{{learn2rag_scheme}}://localhost:{{ports.ui}}/health']
# # Only needed if WEBUI_AUTH is True for open-webui
#!!! {% if config.get("SIMPLE_AUTH") %}
# TODO: Upgrade openwebui and remove this completely
open-webui-setup:
working_dir: '{{storage_path}}'
command: ['bash', '-eu', '{{learn2rag_path}}/services/setup-open-webui']
environment:
WEBUI_URL: '{{learn2rag_scheme}}://{{learn2rag_hostname}}:{{ports.ui}}/'
ADMIN_USER_EMAIL: '{{config["SIMPLE_AUTH"].get("username", "")}}'
ADMIN_USER_PASSWORD: '{{config["SIMPLE_AUTH"].get("password", "")}}'
#!!! {% endif %}
qdrant:
working_dir: '{{storage_path}}'
command:
Expand Down
2 changes: 1 addition & 1 deletion services/install-open-webui
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
set -eux
npm install
npm run build
uv venv .venv --python 3.11 --seed
uv venv .venv --clear --python 3.11 --seed
uv run .venv/bin/pip install .
2 changes: 1 addition & 1 deletion services/open-webui
Submodule open-webui updated 945 files
14 changes: 0 additions & 14 deletions services/setup-open-webui

This file was deleted.

Loading