Update lobe-chat to version 2.1.52 (#4606)

This commit is contained in:
Alexander L. authored and GitHub committed 2026-04-22 18:43:53 +02:00
1 parent 132fd66026
commit e41ea3dca8
9 files changed
+334 -14

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
{
"ID": "",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"AWS": [
"*"
]
},
"Action": [
"s3:GetObject"
],
"NotAction": [],
"Resource": [
"arn:aws:s3:::lobe/*"
],
"NotResource": [],
"Condition": {}
}
],
"Version": "2012-10-17"
}
View File
Whitespace-only changes.
View File
Whitespace-only changes.
View File
Whitespace-only changes.
View File
Whitespace-only changes.
+6
View File
@@ -0,0 +1,6 @@
use_default_settings: true
search:
formats:
- html
- json
+109 -2
View File
@@ -1,12 +1,119 @@
version: '3.7'
version: "3.7"
services:
app_proxy:
environment:
APP_HOST: lobe-chat_app_1
APP_PORT: 3210
PROXY_AUTH_ADD: "false"
app:
image: lobehub/lobe-chat:1.143.2@sha256:65793dfe2378eecea89c335c01cb1094c240eb67047902859140e0f0b1a15069
image: lobehub/lobehub:2.1.52@sha256:218df7ec92cc808a6a2b99e3ca4f789b430ad7db8d5ca307c90ba42ea7d0214a
restart: on-failure
env_file:
- ${APP_DATA_DIR}/settings.env
environment:
APP_URL: http://${DEVICE_DOMAIN_NAME}:7455
INTERNAL_APP_URL: http://lobe-chat_app_1:3210
AUTH_TRUSTED_ORIGINS: http://${DEVICE_DOMAIN_NAME}:7455
DATABASE_URL: postgresql://postgres:lobehubsecret@lobe-chat_postgres_1:5432/lobehub
REDIS_URL: redis://lobe-chat_redis_1:6379
REDIS_PREFIX: lobechat
REDIS_TLS: "0"
S3_ENDPOINT: http://${DEVICE_DOMAIN_NAME}:7458
S3_BUCKET: lobe
S3_ACCESS_KEY: lobehub
S3_ENABLE_PATH_STYLE: "1"
S3_ACCESS_KEY_ID: lobehub
S3_SECRET_ACCESS_KEY: ${APP_PASSWORD}
S3_SET_ACL: "0"
LLM_VISION_IMAGE_USE_BASE64: "1"
SEARXNG_URL: http://lobe-chat_searxng_1:8080
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
rustfs:
condition: service_healthy
rustfs-init:
condition: service_completed_successfully
postgres:
image: paradedb/paradedb:0.22.3-pg17@sha256:746c263e546b9d8bfdd278d7da9584c47ce838670e6cdfdb32713147548b43ce
user: "1000:1000"
restart: on-failure
environment:
POSTGRES_DB: lobehub
POSTGRES_PASSWORD: lobehubsecret
volumes:
- ${APP_DATA_DIR}/data/db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d lobehub"]
interval: 10s
timeout: 5s
retries: 10
redis:
image: redis:7.4.8@sha256:a5995dfdf108997f8a7c9587f54fad5e94ed5848de5236a6b28119e99efd67e0
user: "1000:1000"
restart: on-failure
command: redis-server --save 60 1000 --appendonly yes
volumes:
- ${APP_DATA_DIR}/data/redis:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 10
rustfs:
image: rustfs/rustfs:1.0.0-alpha.90@sha256:0725587f6fcca83c1898f321424327d6e6da5e01ea20382905dd258ed5af3be4
restart: on-failure
ports:
- "7458:9000"
volumes:
- ${APP_DATA_DIR}/data/rustfs:/data
- ${APP_DATA_DIR}/data/rustfs-logs:/logs
environment:
RUSTFS_ADDRESS: 0.0.0.0:9000
RUSTFS_CONSOLE_ADDRESS: 0.0.0.0:9001
RUSTFS_CONSOLE_ENABLE: "true"
RUSTFS_VOLUMES: /data
RUSTFS_ACCESS_KEY: lobehub
RUSTFS_SECRET_KEY: ${APP_PASSWORD}
RUSTFS_OBS_LOG_DIRECTORY: /logs
healthcheck:
test:
["CMD", "sh", "-c", "curl -f http://127.0.0.1:9000/health && curl -f http://127.0.0.1:9001/rustfs/console/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
rustfs-init:
image: minio/mc:RELEASE.2025-08-13T08-35-41Z@sha256:a7fe349ef4bd8521fb8497f55c6042871b2ae640607cf99d9bede5e9bdf11727
restart: on-failure
depends_on:
rustfs:
condition: service_healthy
volumes:
- ./bucket.config.json:/bucket.config.json:ro
entrypoint: /bin/sh
command:
- -c
- >
set -eux;
mc --version;
mc alias set rustfs "http://lobe-chat_rustfs_1:9000" "lobehub" "${APP_PASSWORD}";
mc ls rustfs || true;
mc mb "rustfs/lobe" --ignore-existing;
mc anonymous set download rustfs/lobe
searxng:
image: ghcr.io/searxng/searxng:2026.4.22-74f1ca203@sha256:37c616a774b90fb5df9239eb143f1b11866ddf7b830cd1ebcca6ba11b38cc2bf
restart: on-failure
environment:
SEARXNG_SECRET: ${APP_SEED}
volumes:
- ${APP_DATA_DIR}/data/searxng/settings.yml:/etc/searxng/settings.yml
+166
View File
@@ -0,0 +1,166 @@
#!/usr/bin/env bash
set -euo pipefail
ENV_FILE="${APP_DATA_DIR}/settings.env"
TMP_DIR="${APP_DATA_DIR}/tmp"
DB_DATA_DIR="${APP_DATA_DIR}/data/db"
REDIS_DATA_DIR="${APP_DATA_DIR}/data/redis"
RUSTFS_DATA_DIR="${APP_DATA_DIR}/data/rustfs"
RUSTFS_LOGS_DIR="${APP_DATA_DIR}/data/rustfs-logs"
SEARXNG_DATA_DIR="${APP_DATA_DIR}/data/searxng"
mkdir -p "${TMP_DIR}"
mkdir -p "${DB_DATA_DIR}" "${REDIS_DATA_DIR}" "${RUSTFS_DATA_DIR}" "${RUSTFS_LOGS_DIR}" "${SEARXNG_DATA_DIR}"
touch "${ENV_FILE}"
chown -R 1000:1000 "${DB_DATA_DIR}" "${REDIS_DATA_DIR}" 2>/dev/null || true
chown -R 10001:10001 "${RUSTFS_DATA_DIR}" "${RUSTFS_LOGS_DIR}" 2>/dev/null || true
if [[ ! -f "${SEARXNG_DATA_DIR}/settings.yml" ]]; then
cat > "${SEARXNG_DATA_DIR}/settings.yml" <<'EOF'
use_default_settings: true
search:
formats:
- html
- json
EOF
fi
get_var() {
local key="$1"
if grep -q "^${key}=" "${ENV_FILE}"; then
grep "^${key}=" "${ENV_FILE}" | tail -n 1 | cut -d= -f2-
fi
}
set_var() {
local key="$1"
local value="$2"
python3 - "$ENV_FILE" "$key" "$value" <<'PY'
import pathlib
import sys
path = pathlib.Path(sys.argv[1])
key = sys.argv[2]
value = sys.argv[3]
lines = path.read_text().splitlines() if path.exists() else []
updated = False
for index, line in enumerate(lines):
if line.startswith(f"{key}="):
lines[index] = f"{key}={value}"
updated = True
break
if not updated:
lines.append(f"{key}={value}")
path.write_text("\n".join(lines) + "\n")
PY
}
generate_secret() {
openssl rand -base64 32 | tr -d '\n'
}
generate_jwks() {
local pem_file="${TMP_DIR}/jwks.pem"
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:2048 -out "${pem_file}" >/dev/null 2>&1
python3 - "${pem_file}" <<'PY'
import base64
import hashlib
import json
import re
import subprocess
import sys
pem_file = sys.argv[1]
text = subprocess.check_output(
["openssl", "rsa", "-in", pem_file, "-text", "-noout"],
stderr=subprocess.DEVNULL,
text=True,
)
mapping = {
"modulus": "n",
"privateExponent": "d",
"prime1": "p",
"prime2": "q",
"exponent1": "dp",
"exponent2": "dq",
"coefficient": "qi",
}
values = {}
current = None
for line in text.splitlines():
stripped = line.strip()
if stripped.startswith("publicExponent:"):
exponent = int(stripped.split()[1])
values["e"] = exponent.to_bytes((exponent.bit_length() + 7) // 8, "big")
current = None
continue
if stripped.endswith(":") and stripped[:-1] in mapping:
current = mapping[stripped[:-1]]
values[current] = b""
continue
if current and re.fullmatch(r"[0-9a-f:]+", stripped):
values[current] += bytes.fromhex(stripped.replace(":", ""))
continue
current = None
for key in ("n", "d", "p", "q", "dp", "dq", "qi"):
value = values[key]
while len(value) > 1 and value[0] == 0:
value = value[1:]
values[key] = value
def b64url(data):
return base64.urlsafe_b64encode(data).decode().rstrip("=")
kid = hashlib.sha256(values["n"]).hexdigest()[:16]
print(
json.dumps(
{
"keys": [
{
"kty": "RSA",
"use": "sig",
"alg": "RS256",
"kid": kid,
"n": b64url(values["n"]),
"e": b64url(values["e"]),
"d": b64url(values["d"]),
"p": b64url(values["p"]),
"q": b64url(values["q"]),
"dp": b64url(values["dp"]),
"dq": b64url(values["dq"]),
"qi": b64url(values["qi"]),
}
]
},
separators=(",", ":"),
)
)
PY
rm -f "${pem_file}"
}
if [[ -z "$(get_var KEY_VAULTS_SECRET)" ]]; then
set_var KEY_VAULTS_SECRET "$(generate_secret)"
fi
if [[ -z "$(get_var AUTH_SECRET)" ]]; then
set_var AUTH_SECRET "$(generate_secret)"
fi
if [[ -z "$(get_var JWKS_KEY)" ]]; then
set_var JWKS_KEY "$(generate_jwks)"
fi
+29 -12
View File
@@ -1,27 +1,33 @@
manifestVersion: 1
manifestVersion: 1.1
id: lobe-chat
name: Lobe Chat
tagline: An open-source, modern-design AI chat framework
name: Lobe Hub
tagline: Your self-hosted AI workspace for chat, agents, and knowledge
category: ai
version: "1.143.2"
version: "2.1.52"
port: 7455
description: >-
💬 An open-source, modern-design ChatGPT/LLMs UI/Framework.
💬 Lobe Hub is a self-hosted AI workspace for conversations, agent teams,
knowledge bases, and multimodal workflows.
🗣️ Supports speech-synthesis, multi-modal, and extensible (function call) plugin system.
🗣️ It supports speech, multimodal chat, files, knowledge retrieval, and a rich
provider ecosystem including OpenAI-compatible APIs, Anthropic, Google, Groq,
Ollama, and more.
🤖 One-click deployment of your private OpenAI ChatGPT/Claude/Gemini/Groq/Ollama chat application.
🤖 This Umbrel package now follows the current upstream self-hosted deployment
model and includes PostgreSQL, Redis, and S3-compatible object storage for
uploads and knowledge base features.
🔑 To get started, add your OpenAI API key in the settings or configure one of the many other providers.
🔑 To get started, create an account on first launch and then add one or more
AI provider API keys in the Lobe Hub settings.
developer: LobeHub
website: https://lobehub.com/
submitter: al-lac
submission: https://github.com/getumbrel/umbrel-apps/pull/1901
repo: https://github.com/lobehub/lobe-chat
support: https://github.com/lobehub/lobe-chat/issues
repo: https://github.com/lobehub/lobehub
support: https://github.com/lobehub/lobehub/issues
gallery:
- 1.jpg
- 2.jpg
@@ -30,8 +36,19 @@ defaultUsername: ""
defaultPassword: ""
dependencies: []
releaseNotes: >-
Fixed a security vulnerability related to React.
⚠️ Before updating, open Lobe Chat in your browser and export your data via Settings > Data Storage > Export. After updating to Lobe Hub, you can re-import the file via Settings > Import Data. Your local chats and knowledge bases will not be automatically migrated due to the significant architectural changes in this update.
Full release notes are available at https://github.com/lobehub/lobe-chat/releases
This big update renames the app to Lobe Hub and comes with a lot of new features and improvements.
Key changes:
- Updated to Lobe Hub v2.1.52
- Added PostgreSQL with pgvector and pg_search support
- Added Redis for caching and session-backed features
- Added S3-compatible object storage for uploads and knowledge bases
- Switched from the old single-container setup to the current upstream architecture
Full release notes are available at https://github.com/lobehub/lobehub/releases
path: ""