Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

📝 docs: improve self-hosting documents (#11994)

Arvin Xu749651191797
diff --git a/docs/changelog/2025-03-02-new-models.mdx b/docs/changelog/2025-03-02-new-models.mdx
index 3f246bc1582..92dfe6781c8 100644
--- a/docs/changelog/2025-03-02-new-models.mdx
+++ b/docs/changelog/2025-03-02-new-models.mdx
@@ -9,7 +9,7 @@ tags:
# Seamless DeepSeek R1 Integration, Unlock a New Chain-of-Thought Experience
-LobeChat completed its largest AI ecosystem expansion ever in February, delivering a more powerful and flexible AI chat experience.
+LobeHub completed its largest AI ecosystem expansion ever in February, delivering a more powerful and flexible AI chat experience.
## 🌟 Major Updates
diff --git a/docs/changelog/2025-03-02-new-models.zh-CN.mdx b/docs/changelog/2025-03-02-new-models.zh-CN.mdx
index f8395cc0f4e..90f745e4385 100644
--- a/docs/changelog/2025-03-02-new-models.zh-CN.mdx
+++ b/docs/changelog/2025-03-02-new-models.zh-CN.mdx
@@ -9,7 +9,7 @@ tags:
# 完美集成 DeepSeek R1 ,开启思维链新体验
-LobeChat 在二月完成了史上最大规模的 AI 生态扩展,带来更强大、更灵活的 AI 对话体验。
+LobeHub 在二月完成了史上最大规模的 AI 生态扩展,带来更强大、更灵活的 AI 对话体验。
## 🌟 重大更新
diff --git a/docs/changelog/2025-04-06-exports.mdx b/docs/changelog/2025-04-06-exports.mdx
index e0297469bee..a96d4ac2f96 100644
--- a/docs/changelog/2025-04-06-exports.mdx
+++ b/docs/changelog/2025-04-06-exports.mdx
@@ -9,7 +9,7 @@ tags:
# Seamless DeepSeek R1 Integration, Unlock a New Chain-of-Thought Experience
-In March, LobeChat continued to refine the user experience—adding practical features like customizable hotkeys and data export, while further expanding the AI provider ecosystem.
+In March, LobeHub continued to refine the user experience—adding practical features like customizable hotkeys and data export, while further expanding the AI provider ecosystem.
## 🌟 Key Updates
diff --git a/docs/changelog/2025-04-06-exports.zh-CN.mdx b/docs/changelog/2025-04-06-exports.zh-CN.mdx
index e3ea0dfa99b..9b174dbcab6 100644
--- a/docs/changelog/2025-04-06-exports.zh-CN.mdx
+++ b/docs/changelog/2025-04-06-exports.zh-CN.mdx
@@ -9,7 +9,7 @@ tags:
# 完美集成 DeepSeek R1 ,开启思维链新体验
-LobeChat 在三月持续优化用户体验,新增快捷键自定义、数据导出等实用功能,并扩展 AI 服务商生态。
+LobeHub 在三月持续优化用户体验,新增快捷键自定义、数据导出等实用功能,并扩展 AI 服务商生态。
## 🌟 重要更新
diff --git a/docs/changelog/2025-05-08-desktop-app.mdx b/docs/changelog/2025-05-08-desktop-app.mdx
index c70511b89be..989da2c5c60 100644
--- a/docs/changelog/2025-05-08-desktop-app.mdx
+++ b/docs/changelog/2025-05-08-desktop-app.mdx
@@ -1,6 +1,6 @@
---
title: Brand-New Design Style and Desktop App Release ✨
-description: LobeChat officially launches the desktop app, delivering a more modern and smoother experience.
+description: LobeHub officially launches the desktop app, delivering a more modern and smoother experience.
tags:
- Desktop App
- LobeHub
@@ -9,7 +9,7 @@ tags:
# Brand-New Design Style and Desktop App Release ✨
-In April, LobeChat shipped a major visual upgrade with the brand-new Lobe UI v2 design system, and officially released the desktop app—bringing a more modern and fluid experience.
+In April, LobeHub shipped a major visual upgrade with the brand-new Lobe UI v2 design system, and officially released the desktop app—bringing a more modern and fluid experience.
## 🌟 Major Updates
diff --git a/docs/changelog/2025-05-08-desktop-app.zh-CN.mdx b/docs/changelog/2025-05-08-desktop-app.zh-CN.mdx
index 9f9a0d4b13a..8c6bab2f2c4 100644
--- a/docs/changelog/2025-05-08-desktop-app.zh-CN.mdx
+++ b/docs/changelog/2025-05-08-desktop-app.zh-CN.mdx
@@ -1,6 +1,6 @@
---
title: 全新设计风格与桌面端发布 ✨
-description: LobeChat 正式发布桌面端应用,带来更现代、更流畅的使用体验
+description: LobeHub 正式发布桌面端应用,带来更现代、更流畅的使用体验
tags:
- 桌面端
- LobeHub
@@ -9,7 +9,7 @@ tags:
# 全新设计风格与桌面端发布 ✨
-LobeChat 在四月完成重大视觉升级,推出全新 Lobe UI v2 设计系统,并正式发布桌面端应用,带来更现代、更流畅的使用体验。
+LobeHub 在四月完成重大视觉升级,推出全新 Lobe UI v2 设计系统,并正式发布桌面端应用,带来更现代、更流畅的使用体验。
## 🌟 重大更新
diff --git a/docs/changelog/2025-06-08-claude-4.mdx b/docs/changelog/2025-06-08-claude-4.mdx
index 33daea4a02e..656fb45b015 100644
--- a/docs/changelog/2025-06-08-claude-4.mdx
+++ b/docs/changelog/2025-06-08-claude-4.mdx
@@ -9,7 +9,7 @@ tags:
# Prompt Variables and Claude 4 Reasoning Model Support 🚀
-From May to June, LobeChat continued to refine core capabilities—introducing a prompt-variables system, adding support for Claude 4 reasoning models, and expanding search and crawling across multiple AI providers.
+From May to June, LobeHub continued to refine core capabilities—introducing a prompt-variables system, adding support for Claude 4 reasoning models, and expanding search and crawling across multiple AI providers.
## 🌟 Key Updates
diff --git a/docs/changelog/2025-06-08-claude-4.zh-CN.mdx b/docs/changelog/2025-06-08-claude-4.zh-CN.mdx
index 70fc51c304c..ba8ade003b6 100644
--- a/docs/changelog/2025-06-08-claude-4.zh-CN.mdx
+++ b/docs/changelog/2025-06-08-claude-4.zh-CN.mdx
@@ -9,7 +9,7 @@ tags:
# 提示词变量与 Claude 4 推理模型支持 🚀
-LobeChat 在五月至六月持续优化核心功能,新增提示词变量系统、支持 Claude 4 推理模型,并扩展多个 AI 服务商的搜索与推理能力。
+LobeHub 在五月至六月持续优化核心功能,新增提示词变量系统、支持 Claude 4 推理模型,并扩展多个 AI 服务商的搜索与推理能力。
## 🌟 主要更新
diff --git a/docs/changelog/2025-07-08-mcp-market.mdx b/docs/changelog/2025-07-08-mcp-market.mdx
index 702d148f0e8..04f6a1f13d5 100644
--- a/docs/changelog/2025-07-08-mcp-market.mdx
+++ b/docs/changelog/2025-07-08-mcp-market.mdx
@@ -9,7 +9,7 @@ tags:
# MCP Marketplace and Search Provider Expansion 🔍
-From June to July, LobeChat launched the MCP plugin marketplace, added support for multiple search providers, and integrated Amazon Cognito and Google SSO—continuing to improve both user experience and the developer ecosystem.
+From June to July, LobeHub launched the MCP plugin marketplace, added support for multiple search providers, and integrated Amazon Cognito and Google SSO—continuing to improve both user experience and the developer ecosystem.
## 🌟 Major Updates
diff --git a/docs/changelog/2025-07-08-mcp-market.zh-CN.mdx b/docs/changelog/2025-07-08-mcp-market.zh-CN.mdx
index 71068d0104e..a8c3c64f64e 100644
--- a/docs/changelog/2025-07-08-mcp-market.zh-CN.mdx
+++ b/docs/changelog/2025-07-08-mcp-market.zh-CN.mdx
@@ -9,7 +9,7 @@ tags:
# MCP 市场与搜索服务商扩展 🔍
-LobeChat 在六月至七月推出 MCP 插件市场,新增多个搜索服务商支持,并集成 Amazon Cognito 与 Google SSO 认证,持续优化用户体验与开发者生态。
+LobeHub 在六月至七月推出 MCP 插件市场,新增多个搜索服务商支持,并集成 Amazon Cognito 与 Google SSO 认证,持续优化用户体验与开发者生态。
## 🌟 重大更新
diff --git a/docs/changelog/2025-08-08-image-generation.mdx b/docs/changelog/2025-08-08-image-generation.mdx
index 5053306d429..dcfb2e7f20e 100644
--- a/docs/changelog/2025-08-08-image-generation.mdx
+++ b/docs/changelog/2025-08-08-image-generation.mdx
@@ -9,7 +9,7 @@ tags:
# AI Image Generation and Desktop Enhancements 🎨
-From July to August, LobeChat introduced AI image generation, added support for multiple providers, and continued improving the desktop experience and authentication system.
+From July to August, LobeHub introduced AI image generation, added support for multiple providers, and continued improving the desktop experience and authentication system.
## 🌟 Major Updates
diff --git a/docs/changelog/2025-08-08-image-generation.zh-CN.mdx b/docs/changelog/2025-08-08-image-generation.zh-CN.mdx
index f79f8887027..12af84d09ba 100644
--- a/docs/changelog/2025-08-08-image-generation.zh-CN.mdx
+++ b/docs/changelog/2025-08-08-image-generation.zh-CN.mdx
@@ -9,7 +9,7 @@ tags:
# AI 图像生成与桌面端增强 🎨
-LobeChat 在七月至八月推出 AI 图像生成功能,新增多个服务商支持,并持续优化桌面端体验与认证系统。
+LobeHub 在七月至八月推出 AI 图像生成功能,新增多个服务商支持,并持续优化桌面端体验与认证系统。
## 🌟 重大更新
diff --git a/docs/changelog/2025-09-08-gemini.mdx b/docs/changelog/2025-09-08-gemini.mdx
index 0c674c991d3..bbc3cf55729 100644
--- a/docs/changelog/2025-09-08-gemini.mdx
+++ b/docs/changelog/2025-09-08-gemini.mdx
@@ -9,7 +9,7 @@ tags:
# Gemini Image Generation and Non-Streaming Mode Support 🎨
-From August to September, LobeChat added Gemini 2.5 Flash Image generation, introduced non-streaming response mode support, and expanded provider and model support across the ecosystem.
+From August to September, LobeHub added Gemini 2.5 Flash Image generation, introduced non-streaming response mode support, and expanded provider and model support across the ecosystem.
## 🌟 Major Updates
diff --git a/docs/changelog/2025-09-08-gemini.zh-CN.mdx b/docs/changelog/2025-09-08-gemini.zh-CN.mdx
index 42d9e55aee4..b28ecd4c07d 100644
--- a/docs/changelog/2025-09-08-gemini.zh-CN.mdx
+++ b/docs/changelog/2025-09-08-gemini.zh-CN.mdx
@@ -9,7 +9,7 @@ tags:
# Gemini 图像生成与非流式模式支持 🎨
-LobeChat 在八月至九月新增 Gemini 2.5 Flash Image 图像生成能力,支持非流式响应模式,并扩展多个 AI 服务商与模型支持。
+LobeHub 在八月至九月新增 Gemini 2.5 Flash Image 图像生成能力,支持非流式响应模式,并扩展多个 AI 服务商与模型支持。
## 🌟 重大更新
diff --git a/docs/changelog/2025-10-08-python.mdx b/docs/changelog/2025-10-08-python.mdx
index cc09a1068ab..51048def016 100644
--- a/docs/changelog/2025-10-08-python.mdx
+++ b/docs/changelog/2025-10-08-python.mdx
@@ -9,7 +9,7 @@ tags:
# Claude Sonnet 4.5 and Built-in Python Plugin 🐍
-From September to October, LobeChat added support for Claude Sonnet 4.5, introduced a built-in Python plugin, and improved chat list navigation and rich text editing.
+From September to October, LobeHub added support for Claude Sonnet 4.5, introduced a built-in Python plugin, and improved chat list navigation and rich text editing.
## 🌟 Key Updates
diff --git a/docs/changelog/2025-10-08-python.zh-CN.mdx b/docs/changelog/2025-10-08-python.zh-CN.mdx
index 9f84310d86e..10983c18db7 100644
--- a/docs/changelog/2025-10-08-python.zh-CN.mdx
+++ b/docs/changelog/2025-10-08-python.zh-CN.mdx
@@ -9,7 +9,7 @@ tags:
# Claude Sonnet 4.5 与内置 Python 插件 🐍
-LobeChat 在九月至十月新增 Claude Sonnet 4.5 模型支持,推出内置 Python 插件,并优化聊天列表导航与富文本编辑体验。
+LobeHub 在九月至十月新增 Claude Sonnet 4.5 模型支持,推出内置 Python 插件,并优化聊天列表导航与富文本编辑体验。
## 🌟 主要更新
diff --git a/docs/changelog/2025-11-08-comfy-ui.mdx b/docs/changelog/2025-11-08-comfy-ui.mdx
index 986d6f0edc3..d0e4744db24 100644
--- a/docs/changelog/2025-11-08-comfy-ui.mdx
+++ b/docs/changelog/2025-11-08-comfy-ui.mdx
@@ -9,7 +9,7 @@ tags:
# ComfyUI Integration and Knowledge Base Improvements ⭐
-From October to November, LobeChat integrated ComfyUI workflows, added support for multiple AI providers and models, and continued to improve the knowledge base and overall user experience.
+From October to November, LobeHub integrated ComfyUI workflows, added support for multiple AI providers and models, and continued to improve the knowledge base and overall user experience.
## 🌟 Key Updates
diff --git a/docs/changelog/2025-11-08-comfy-ui.zh-CN.mdx b/docs/changelog/2025-11-08-comfy-ui.zh-CN.mdx
index 849479e2f1e..48e1eb1a4ac 100644
--- a/docs/changelog/2025-11-08-comfy-ui.zh-CN.mdx
+++ b/docs/changelog/2025-11-08-comfy-ui.zh-CN.mdx
@@ -9,7 +9,7 @@ tags:
# ComfyUI 集成与知识库优化 ⭐
-LobeChat 在十月至十一月集成 ComfyUI 工作流,新增多个 AI 服务商与模型支持,并持续优化知识库与用户体验。
+LobeHub 在十月至十一月集成 ComfyUI 工作流,新增多个 AI 服务商与模型支持,并持续优化知识库与用户体验。
## 🌟 重要更新
diff --git a/docs/changelog/2025-12-20-mcp.mdx b/docs/changelog/2025-12-20-mcp.mdx
index e7d5976a318..6325a725ce4 100644
--- a/docs/changelog/2025-12-20-mcp.mdx
+++ b/docs/changelog/2025-12-20-mcp.mdx
@@ -10,7 +10,7 @@ tags:
# MCP Cloud Endpoints and Model Library Expansion 🔌
-In November, LobeChat continued to improve model support and user experience by adding multiple AI providers and enhancing knowledge base capabilities.
+In November, LobeHub continued to improve model support and user experience by adding multiple AI providers and enhancing knowledge base capabilities.
## 🌟 Key Updates
diff --git a/docs/changelog/2025-12-20-mcp.zh-CN.mdx b/docs/changelog/2025-12-20-mcp.zh-CN.mdx
index a02e0627bac..618d239f8f5 100644
--- a/docs/changelog/2025-12-20-mcp.zh-CN.mdx
+++ b/docs/changelog/2025-12-20-mcp.zh-CN.mdx
@@ -10,7 +10,7 @@ tags:
# MCP 云端点与模型库扩展 🔌
-LobeChat 在十一月持续优化模型支持与用户体验,新增多个 AI 服务商,并改进知识库功能。
+LobeHub 在十一月持续优化模型支持与用户体验,新增多个 AI 服务商,并改进知识库功能。
## 🌟 重要更新
diff --git a/docs/development/basic/add-new-authentication-providers.zh-CN.mdx b/docs/development/basic/add-new-authentication-providers.zh-CN.mdx
index d765b6fe7ee..fd652349199 100644
--- a/docs/development/basic/add-new-authentication-providers.zh-CN.mdx
+++ b/docs/development/basic/add-new-authentication-providers.zh-CN.mdx
@@ -12,7 +12,7 @@ tags:
LobeHub 使用 [Auth.js v5](https://authjs.dev/) 作为外部身份验证服务。Auth.js 是一个开源的身份验证库,它提供了一种简单的方式来实现身份验证和授权功能。本文档将介绍如何使用 Auth.js 来实现新的身份验证方式。
-LobeChat 使用 [Better Auth](https://www.better-auth.com) 作为身份验证服务。本文档介绍如何添加新的 SSO 身份验证提供商。
+LobeHub 使用 [Better Auth](https://www.better-auth.com) 作为身份验证服务。本文档介绍如何添加新的 SSO 身份验证提供商。
为了在 LobeHub 中添加新的身份验证提供者(例如添加 Okta),你需要完成以下步骤:
diff --git a/docs/development/basic/add-new-image-model.mdx b/docs/development/basic/add-new-image-model.mdx
index b18105b347b..a08818f70b5 100644
--- a/docs/development/basic/add-new-image-model.mdx
+++ b/docs/development/basic/add-new-image-model.mdx
@@ -11,7 +11,7 @@ tags:
# Adding New Image Models
-> Learn more about the AI image generation modal design in the [AI Image Generation Modal Design Discussion](https://github.com/lobehub/lobe-chat/discussions/7442)
+> Learn more about the AI image generation modal design in the [AI Image Generation Modal Design Discussion](https://github.com/lobehub/lobehub/discussions/7442)
## Parameter Standardization
@@ -65,7 +65,7 @@ For image generation models that are not compatible with OpenAI format, you need
### Method 1: Using OpenAI Compatible Factory
-Most Providers use `openaiCompatibleFactory` for OpenAI compatibility. You can pass in a custom `createImage` function (reference [PR #8534](https://github.com/lobehub/lobe-chat/pull/8534)).
+Most Providers use `openaiCompatibleFactory` for OpenAI compatibility. You can pass in a custom `createImage` function (reference [PR #8534](https://github.com/lobehub/lobehub/pull/8534)).
**Implementation Steps**:
@@ -124,7 +124,7 @@ export const LobeProviderAI = openaiCompatibleFactory({
### Method 2: Direct Implementation in Provider Class
-If your Provider has an independent class implementation, you can directly add the `createImage` method in the class (reference [PR #8503](https://github.com/lobehub/lobe-chat/pull/8503)).
+If your Provider has an independent class implementation, you can directly add the `createImage` method in the class (reference [PR #8503](https://github.com/lobehub/lobehub/pull/8503)).
**Implementation Steps**:
diff --git a/docs/development/basic/add-new-image-model.zh-CN.mdx b/docs/development/basic/add-new-image-model.zh-CN.mdx
index 95daa34711f..49d821d5a5f 100644
--- a/docs/development/basic/add-new-image-model.zh-CN.mdx
+++ b/docs/development/basic/add-new-image-model.zh-CN.mdx
@@ -9,7 +9,7 @@ tags:
# 添加新的图像模型
-> 了解更多关于 AI 绘画模态的设计,请参考 [AI 绘画模态设计讨论](https://github.com/lobehub/lobe-chat/discussions/7442)
+> 了解更多关于 AI 绘画模态的设计,请参考 [AI 绘画模态设计讨论](https://github.com/lobehub/lobehub/discussions/7442)
## 参数标准化
@@ -63,7 +63,7 @@ const zhipuImageModels: AIImageModelCard[] = [
### 方式一:使用 OpenAI Compatible Factory
-大部分 Provider 都使用 `openaiCompatibleFactory` 来兼容 OpenAI,可以通过传入自定义的 `createImage` 函数(参考 [PR #8534](https://github.com/lobehub/lobe-chat/pull/8534))。
+大部分 Provider 都使用 `openaiCompatibleFactory` 来兼容 OpenAI,可以通过传入自定义的 `createImage` 函数(参考 [PR #8534](https://github.com/lobehub/lobehub/pull/8534))。
**实现步骤**:
@@ -122,7 +122,7 @@ export const LobeProviderAI = openaiCompatibleFactory({
### 方式二:在 Provider 类中直接实现
-如果你的 Provider 有独立的类实现,可以直接在类中添加 `createImage` 方法(参考 [PR #8503](https://github.com/lobehub/lobe-chat/pull/8503))。
+如果你的 Provider 有独立的类实现,可以直接在类中添加 `createImage` 方法(参考 [PR #8503](https://github.com/lobehub/lobehub/pull/8503))。
**实现步骤**:
diff --git a/docs/development/basic/chat-api.mdx b/docs/development/basic/chat-api.mdx
index fd3789bdd17..174d8df2df8 100644
--- a/docs/development/basic/chat-api.mdx
+++ b/docs/development/basic/chat-api.mdx
@@ -1,18 +1,18 @@
---
-title: Lobe Chat API Client-Server Interaction Logic
+title: LobeHub API Client-Server Interaction Logic
description: >-
- Explore the client-server interaction logic of Lobe Chat API, including event
+ Explore the client-server interaction logic of LobeHub API, including event
sequences.
tags:
- - Lobe Chat API
+ - LobeHub API
- Client-Server Interaction
- Event Sequences
- API Logic
---
-# Lobe Chat API Client-Server Interaction Logic
+# LobeHub API Client-Server Interaction Logic
-This document explains the implementation logic of Lobe Chat API in client-server interactions, including event sequences and core components involved.
+This document explains the implementation logic of LobeHub API in client-server interactions, including event sequences and core components involved.
## Interaction Sequence Diagram
@@ -201,7 +201,7 @@ sequenceDiagram
## AgentRuntime Overview
-AgentRuntime is a core abstraction layer in Lobe Chat that encapsulates a unified interface for interacting with different AI model providers. Its main responsibilities and features include:
+AgentRuntime is a core abstraction layer in LobeHub that encapsulates a unified interface for interacting with different AI model providers. Its main responsibilities and features include:
1. **Unified Abstraction Layer**: AgentRuntime provides a unified interface that hides the implementation details and differences between various AI provider APIs (such as OpenAI, Anthropic, Bedrock, etc.).
@@ -244,7 +244,7 @@ AgentRuntime is a core abstraction layer in Lobe Chat that encapsulates a unifie
**Adapter Implementation Examples**:
- 1. **OpenRouter Adapter**: OpenRouter is a unified API that allows access to AI models from multiple providers. Lobe Chat implements support for OpenRouter through an adapter:
+ 1. **OpenRouter Adapter**: OpenRouter is a unified API that allows access to AI models from multiple providers. LobeHub implements support for OpenRouter through an adapter:
```ts
// OpenRouter adapter implementation
@@ -258,7 +258,7 @@ AgentRuntime is a core abstraction layer in Lobe Chat that encapsulates a unifie
apiKey: options.apiKey,
baseURL: OPENROUTER_BASE_URL,
defaultHeaders: {
- 'HTTP-Referer': 'https://github.com/lobehub/lobe-chat',
+ 'HTTP-Referer': 'https://github.com/lobehub/lobehub',
'X-Title': 'LobeHub',
},
});
@@ -267,7 +267,7 @@ AgentRuntime is a core abstraction layer in Lobe Chat that encapsulates a unifie
// Implement chat functionality
async chat(payload: ChatCompletionCreateParamsBase, options?: RequestOptions) {
- // Convert Lobe Chat request format to OpenRouter format
+ // Convert LobeHub request format to OpenRouter format
// Handle model mapping, message format, etc.
return this.client.chat.completions.create(
{
@@ -282,7 +282,7 @@ AgentRuntime is a core abstraction layer in Lobe Chat that encapsulates a unifie
}
```
- 2. **Google Gemini Adapter**: Gemini is Google's large language model. Lobe Chat supports Gemini series models through a dedicated adapter:
+ 2. **Google Gemini Adapter**: Gemini is Google's large language model. LobeHub supports Gemini series models through a dedicated adapter:
```ts
import { GoogleGenerativeAI } from '@google/generative-ai';
diff --git a/docs/development/basic/chat-api.zh-CN.mdx b/docs/development/basic/chat-api.zh-CN.mdx
index 02ff7dca311..bc0f5389bfb 100644
--- a/docs/development/basic/chat-api.zh-CN.mdx
+++ b/docs/development/basic/chat-api.zh-CN.mdx
@@ -1,16 +1,16 @@
---
-title: Lobe Chat API 前后端交互逻辑
-description: 深入了解 Lobe Chat API 的前后端交互实现逻辑和核心组件。
+title: LobeHub API 前后端交互逻辑
+description: 深入了解 LobeHub API 的前后端交互实现逻辑和核心组件。
tags:
- - Lobe Chat API
+ - LobeHub API
- 前后端交互
- 事件序列
- 核心组件
---
-# Lobe Chat API 前后端交互逻辑
+# LobeHub API 前后端交互逻辑
-本文档说明了 Lobe Chat API 在前后端交互中的实现逻辑,包括事件序列和涉及的核心组件。
+本文档说明了 LobeHub API 在前后端交互中的实现逻辑,包括事件序列和涉及的核心组件。
## 交互时序图
@@ -199,7 +199,7 @@ sequenceDiagram
## AgentRuntime 说明
-AgentRuntime 是 Lobe Chat 中的一个核心抽象层,它封装了与不同 AI 模型提供商交互的统一接口。其主要职责和特点包括:
+AgentRuntime 是 LobeHub 中的一个核心抽象层,它封装了与不同 AI 模型提供商交互的统一接口。其主要职责和特点包括:
1. **统一抽象层**:AgentRuntime 提供了一个统一的接口,隐藏了不同 AI 提供商 API 的实现细节差异(如 OpenAI、Anthropic、Bedrock 等)。
@@ -242,7 +242,7 @@ AgentRuntime 是 Lobe Chat 中的一个核心抽象层,它封装了与不同 A
**适配器实现示例**:
- 1. **OpenRouter 适配器**:OpenRouter 是一个统一 API,可以通过它访问多个模型提供商的 AI 模型。Lobe Chat 通过适配器实现对 OpenRouter 的支持:
+ 1. **OpenRouter 适配器**:OpenRouter 是一个统一 API,可以通过它访问多个模型提供商的 AI 模型。LobeHub 通过适配器实现对 OpenRouter 的支持:
```ts
// OpenRouter 适配器实现
@@ -256,7 +256,7 @@ AgentRuntime 是 Lobe Chat 中的一个核心抽象层,它封装了与不同 A
apiKey: options.apiKey,
baseURL: OPENROUTER_BASE_URL,
defaultHeaders: {
- 'HTTP-Referer': 'https://github.com/lobehub/lobe-chat',
+ 'HTTP-Referer': 'https://github.com/lobehub/lobehub',
'X-Title': 'LobeHub',
},
});
@@ -265,7 +265,7 @@ AgentRuntime 是 Lobe Chat 中的一个核心抽象层,它封装了与不同 A
// 实现聊天功能
async chat(payload: ChatCompletionCreateParamsBase, options?: RequestOptions) {
- // 将 Lobe Chat 的请求格式转换为 OpenRouter 格式
+ // 将 LobeHub 的请求格式转换为 OpenRouter 格式
// 处理模型映射、消息格式等
return this.client.chat.completions.create(
{
@@ -280,7 +280,7 @@ AgentRuntime 是 Lobe Chat 中的一个核心抽象层,它封装了与不同 A
}
```
- 2. **Google Gemini 适配器**:Gemini 是 Google 的大语言模型,Lobe Chat 通过专门的适配器支持 Gemini 系列模型:
+ 2. **Google Gemini 适配器**:Gemini 是 Google 的大语言模型,LobeHub 通过专门的适配器支持 Gemini 系列模型:
```ts
import { GoogleGenerativeAI } from '@google/generative-ai';
diff --git a/docs/development/basic/feature-development.mdx b/docs/development/basic/feature-development.mdx
index 74dd0c6983d..4252beadb71 100644
--- a/docs/development/basic/feature-development.mdx
+++ b/docs/development/basic/feature-development.mdx
@@ -13,11 +13,11 @@ tags:
This document aims to guide developers on how to develop a complete feature in LobeHub.
-We will use [RFC 021 - Custom Assistant Opening Guidance](https://github.com/lobehub/lobe-chat/discussions/891) as an example to illustrate the complete implementation process.
+We will use [RFC 021 - Custom Assistant Opening Guidance](https://github.com/lobehub/lobehub/discussions/891) as an example to illustrate the complete implementation process.
## 1. Update Schema
-lobe-chat uses a postgres database, with the browser-side local database using [pglite](https://pglite.dev/) (wasm version of postgres). The project also uses [drizzle](https://orm.drizzle.team/) ORM to operate the database.
+lobehub uses a postgres database, with the browser-side local database using [pglite](https://pglite.dev/) (wasm version of postgres). The project also uses [drizzle](https://orm.drizzle.team/) ORM to operate the database.
Compared to the old solution where the browser side used indexDB, having both the browser side and server side use postgres has the advantage that the model layer code can be completely reused.
@@ -160,7 +160,7 @@ Foreseeably, the frontend will add two inputs, calling updateSessionConfig upon
### Data Flow Store Implementation
-lobe-chat uses [zustand](https://zustand.docs.pmnd.rs/getting-started/introduction) as the global state management framework. For detailed practices on state management, you can refer to [📘 State Management Best Practices](/docs/development/state-management/state-management-intro).
+lobehub uses [zustand](https://zustand.docs.pmnd.rs/getting-started/introduction) as the global state management framework. For detailed practices on state management, you can refer to [📘 State Management Best Practices](/docs/development/state-management/state-management-intro).
There are two stores related to the agent:
@@ -254,7 +254,7 @@ We're adding a new category of settings this time. In `src/features/AgentSetting
- [@ant-design/icons](https://ant.design/components/icon-cn) and [lucide](https://lucide.dev/icons/): icon libraries
- [react-i18next](https://github.com/i18next/react-i18next) and [lobe-i18n](https://github.com/lobehub/lobe-cli-toolbox/tree/master/packages/lobe-i18n): i18n framework and multi-language automatic translation tool
-lobe-chat is an internationalized project, so newly added text needs to update the default `locale` file: `src/locales/default/setting.ts`.
+lobehub is an internationalized project, so newly added text needs to update the default `locale` file: `src/locales/default/setting.ts`.
Let's take the subcomponent `OpeningQuestion.tsx` as an example. Component implementation:
diff --git a/docs/development/basic/feature-development.zh-CN.mdx b/docs/development/basic/feature-development.zh-CN.mdx
index 9b4f355deaa..e0fde5033a8 100644
--- a/docs/development/basic/feature-development.zh-CN.mdx
+++ b/docs/development/basic/feature-development.zh-CN.mdx
@@ -12,11 +12,11 @@ tags:
本文档旨在指导开发者了解如何在 LobeHub 中开发一块完整的功能需求。
-我们将以 [RFC 021 - 自定义助手开场引导](https://github.com/lobehub/lobe-chat/discussions/891) 为例,阐述完整的实现流程。
+我们将以 [RFC 021 - 自定义助手开场引导](https://github.com/lobehub/lobehub/discussions/891) 为例,阐述完整的实现流程。
## 一、更新 schema
-lobe-chat 使用 postgres 数据库,浏览器端本地数据库使用 [pglite](https://pglite.dev/)(wasm 版本 postgres)。项目还使用了 [drizzle](https://orm.drizzle.team/) ORM 用来操作数据库。
+lobehub 使用 postgres 数据库,浏览器端本地数据库使用 [pglite](https://pglite.dev/)(wasm 版本 postgres)。项目还使用了 [drizzle](https://orm.drizzle.team/) ORM 用来操作数据库。
相比旧方案浏览器端使用 indexDB 来说,浏览器端和 server 端都使用 postgres 好处在于 model 层代码可以完全复用。
@@ -159,7 +159,7 @@ export const sessionRouter = router({
### 数据流 store 实现
-lobe-chat 使用 [zustand](https://zustand.docs.pmnd.rs/getting-started/introduction) 作为全局状态管理框架,对于状态管理的详细实践介绍,可以查阅 [📘 状态管理最佳实践](/zh/docs/development/state-management/state-management-intro)。
+lobehub 使用 [zustand](https://zustand.docs.pmnd.rs/getting-started/introduction) 作为全局状态管理框架,对于状态管理的详细实践介绍,可以查阅 [📘 状态管理最佳实践](/zh/docs/development/state-management/state-management-intro)。
和 agent 相关的 store 有两个:
@@ -253,7 +253,7 @@ export const agentSelectors = {
- [@ant-design/icons](https://ant.design/components/icon-cn) 和 [lucide](https://lucide.dev/icons/): 图标库
- [react-i18next](https://github.com/i18next/react-i18next) 和 [lobe-i18n](https://github.com/lobehub/lobe-cli-toolbox/tree/master/packages/lobe-i18n) :i18n 框架和多语言自动翻译工具
-lobe-chat 是个国际化项目,新加的文案需要更新默认的 `locale` 文件: `src/locales/default/setting.ts` 。
+lobehub 是个国际化项目,新加的文案需要更新默认的 `locale` 文件: `src/locales/default/setting.ts` 。
我们以子组件 `OpeningQuestion.tsx` 为例,组件实现:
diff --git a/docs/development/basic/setup-development.mdx b/docs/development/basic/setup-development.mdx
index 209314e8647..b8abf3c528d 100644
--- a/docs/development/basic/setup-development.mdx
+++ b/docs/development/basic/setup-development.mdx
@@ -39,7 +39,7 @@ First, you need to install the following software:
### VSCode Users
-We recommend installing the extensions listed in [.vscode/extensions.json](https://github.com/lobehub/lobe-chat/blob/main/.vscode/extensions.json) for the best development experience.
+We recommend installing the extensions listed in [.vscode/extensions.json](https://github.com/lobehub/lobehub/blob/main/.vscode/extensions.json) for the best development experience.
### Project Setup
@@ -48,13 +48,13 @@ After installing the above software, you can start setting up the LobeHub projec
1. **Get the code**: First, you need to clone the LobeHub codebase from GitHub. Run the following command in the terminal:
```bash
-git clone https://github.com/lobehub/lobe-chat.git
+git clone https://github.com/lobehub/lobehub.git
```
2. **Install dependencies**: Then, navigate to the project directory and use PNPM to install the project's dependencies:
```bash
-cd lobe-chat
+cd lobehub
pnpm i
```
@@ -82,5 +82,5 @@ Please refer to the [Work with Server-Side Database](/docs/development/basic/wor
During the development process, if you encounter any issues with environment setup or have any questions about LobeHub development, feel free to ask us at any time. We look forward to seeing your contributions!
-[codespaces-link]: https://codespaces.new/lobehub/lobe-chat
+[codespaces-link]: https://codespaces.new/lobehub/lobehub
[codespaces-shield]: https://github.com/codespaces/badge.svg
diff --git a/docs/development/basic/setup-development.zh-CN.mdx b/docs/development/basic/setup-development.zh-CN.mdx
index cdcf4a2b819..b77e379a383 100644
--- a/docs/development/basic/setup-development.zh-CN.mdx
+++ b/docs/development/basic/setup-development.zh-CN.mdx
@@ -35,7 +35,7 @@ tags:
### VSCode 用户
-推荐安装 [.vscode/extensions.json](https://github.com/lobehub/lobe-chat/blob/main/.vscode/extensions.json) 中推荐安装的扩展获得最佳开发体验。
+推荐安装 [.vscode/extensions.json](https://github.com/lobehub/lobehub/blob/main/.vscode/extensions.json) 中推荐安装的扩展获得最佳开发体验。
### 项目设置
@@ -44,13 +44,13 @@ tags:
1. **获取代码**:首先,你需要从 GitHub 上克隆 LobeHub 的代码库。在终端中运行以下命令:
```bash
-git clone https://github.com/lobehub/lobe-chat.git
+git clone https://github.com/lobehub/lobehub.git
```
2. **安装依赖**:然后,进入项目目录,并使用 `pnpm` 安装项目的依赖包:
```bash
-cd lobe-chat
+cd lobehub
pnpm i
```
@@ -78,5 +78,5 @@ bun run dev
在开发过程中,如果你在环境设置上遇到任何问题,或者有任何关于 LobeHub 开发的问题,欢迎随时向我们提问。我们期待看到你的贡献!
-[codespaces-link]: https://codespaces.new/lobehub/lobe-chat
+[codespaces-link]: https://codespaces.new/lobehub/lobehub
[codespaces-shield]: https://github.com/codespaces/badge.svg
diff --git a/docs/development/internationalization/add-new-locale.mdx b/docs/development/internationalization/add-new-locale.mdx
index 51c57429d94..d4cbf44de60 100644
--- a/docs/development/internationalization/add-new-locale.mdx
+++ b/docs/development/internationalization/add-new-locale.mdx
@@ -54,7 +54,7 @@ This will utilize the `lobe-i18n` tool to process the language files.
Once you have completed the above steps, you need to submit your changes and create a Pull Request.
-Ensure that you follow LobeHub's contribution guidelines and provide a necessary description to explain your changes. For example, refer to a similar previous Pull Request [#759](https://github.com/lobehub/lobe-chat/pull/759).
+Ensure that you follow LobeHub's contribution guidelines and provide a necessary description to explain your changes. For example, refer to a similar previous Pull Request [#759](https://github.com/lobehub/lobehub/pull/759).
### Additional Information
diff --git a/docs/development/internationalization/add-new-locale.zh-CN.mdx b/docs/development/internationalization/add-new-locale.zh-CN.mdx
index ba14bd3bc30..69db9ad8252 100644
--- a/docs/development/internationalization/add-new-locale.zh-CN.mdx
+++ b/docs/development/internationalization/add-new-locale.zh-CN.mdx
@@ -54,7 +54,7 @@ npm run i18n
一旦你完成了上述步骤,你需要提交你的更改并创建一个 Pull Request。
-请确保你遵循了 LobeHub 的贡献指南,并提供必要的描述来说明你的更改。例如,参考之前的类似 Pull Request [#759](https://github.com/lobehub/lobe-chat/pull/759)。
+请确保你遵循了 LobeHub 的贡献指南,并提供必要的描述来说明你的更改。例如,参考之前的类似 Pull Request [#759](https://github.com/lobehub/lobehub/pull/759)。
### 附加信息
diff --git a/docs/development/internationalization/internationalization-implementation.mdx b/docs/development/internationalization/internationalization-implementation.mdx
index 63965ba4a64..01450f71c5f 100644
--- a/docs/development/internationalization/internationalization-implementation.mdx
+++ b/docs/development/internationalization/internationalization-implementation.mdx
@@ -114,11 +114,11 @@ In this example, we demonstrate how to use `i18next` and related plugins to init
We have already supported a variety of languages globally through the following efforts:
-- [✨ feat: adding Arabic Language Support #1049](https://github.com/lobehub/lobe-chat/pull/1049)
-- [🌐 style: Add Vietnamese files and add the vi-VN option in the General Settings #860](https://github.com/lobehub/lobe-chat/pull/860)
-- [🌐 style: support it-IT nl-NL and pl-PL locales #759](https://github.com/lobehub/lobe-chat/pull/759)
-- [🌐 feat(locale): Add fr-FR (#637) #645](https://github.com/lobehub/lobe-chat/pull/645)
-- [🌐 Add russian localy #137](https://github.com/lobehub/lobe-chat/pull/137)
+- [✨ feat: adding Arabic Language Support #1049](https://github.com/lobehub/lobehub/pull/1049)
+- [🌐 style: Add Vietnamese files and add the vi-VN option in the General Settings #860](https://github.com/lobehub/lobehub/pull/860)
+- [🌐 style: support it-IT nl-NL and pl-PL locales #759](https://github.com/lobehub/lobehub/pull/759)
+- [🌐 feat(locale): Add fr-FR (#637) #645](https://github.com/lobehub/lobehub/pull/645)
+- [🌐 Add russian localy #137](https://github.com/lobehub/lobehub/pull/137)
To add support for new languages, please refer to the detailed steps in the [New Locale Addition Guide](add-new-locale).
diff --git a/docs/development/internationalization/internationalization-implementation.zh-CN.mdx b/docs/development/internationalization/internationalization-implementation.zh-CN.mdx
index 187b56ddbad..6fd7702d52e 100644
--- a/docs/development/internationalization/internationalization-implementation.zh-CN.mdx
+++ b/docs/development/internationalization/internationalization-implementation.zh-CN.mdx
@@ -111,11 +111,11 @@ const createI18nInstance = (lang) => {
我们通过以下工作,已经支持了全球多种语言:
-- [✨ feat: adding Arabic Language Support #1049](https://github.com/lobehub/lobe-chat/pull/1049)
-- [🌐 style: Add Vietnamese files and add the vi-VN option in the General Settings #860](https://github.com/lobehub/lobe-chat/pull/860)
-- [🌐 style: support it-IT nl-NL and pl-PL locales #759](https://github.com/lobehub/lobe-chat/pull/759)
-- [🌐 feat(locale): Add fr-FR (#637) #645](https://github.com/lobehub/lobe-chat/pull/645)
-- [🌐 Add russian localy #137](https://github.com/lobehub/lobe-chat/pull/137)
+- [✨ feat: adding Arabic Language Support #1049](https://github.com/lobehub/lobehub/pull/1049)
+- [🌐 style: Add Vietnamese files and add the vi-VN option in the General Settings #860](https://github.com/lobehub/lobehub/pull/860)
+- [🌐 style: support it-IT nl-NL and pl-PL locales #759](https://github.com/lobehub/lobehub/pull/759)
+- [🌐 feat(locale): Add fr-FR (#637) #645](https://github.com/lobehub/lobehub/pull/645)
+- [🌐 Add russian localy #137](https://github.com/lobehub/lobehub/pull/137)
要添加新的语种支持, 详细步骤请参考:[新语种添加指南](/zh/docs/development/internationalization/add-new-locale)。
diff --git a/docs/development/others/lighthouse.mdx b/docs/development/others/lighthouse.mdx
index 2a71aa0c830..570dbd5c147 100644
--- a/docs/development/others/lighthouse.mdx
+++ b/docs/development/others/lighthouse.mdx
@@ -29,11 +29,11 @@ tags:
| ![][discover-desktop] | ![][discover-mobile] |
| [⚡️ Lighthouse Report][discover-desktop-report] | [⚡️ Lighthouse Report][discover-mobile-report] |
-[chat-desktop]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/desktop/pagespeed.svg
-[chat-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/desktop/LobeHub_com_chat.html
-[chat-mobile]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/mobile/pagespeed.svg
-[chat-mobile-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/mobile/LobeHub_com_chat.html
-[discover-desktop]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/discover/desktop/pagespeed.svg
-[discover-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/discover/desktop/LobeHub_com_discover.html
-[discover-mobile]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/discover/mobile/pagespeed.svg
-[discover-mobile-report]: https://lobehub.github.io/lobe-chat/lighthouse/discover/mobile/LobeHub_com_discover.html
+[chat-desktop]: https://raw.githubusercontent.com/lobehub/lobehub/lighthouse/lighthouse/chat/desktop/pagespeed.svg
+[chat-desktop-report]: https://lobehub.github.io/lobehub/lighthouse/chat/desktop/LobeHub_com_chat.html
+[chat-mobile]: https://raw.githubusercontent.com/lobehub/lobehub/lighthouse/lighthouse/chat/mobile/pagespeed.svg
+[chat-mobile-report]: https://lobehub.github.io/lobehub/lighthouse/chat/mobile/LobeHub_com_chat.html
+[discover-desktop]: https://raw.githubusercontent.com/lobehub/lobehub/lighthouse/lighthouse/discover/desktop/pagespeed.svg
+[discover-desktop-report]: https://lobehub.github.io/lobehub/lighthouse/discover/desktop/LobeHub_com_discover.html
+[discover-mobile]: https://raw.githubusercontent.com/lobehub/lobehub/lighthouse/lighthouse/discover/mobile/pagespeed.svg
+[discover-mobile-report]: https://lobehub.github.io/lobehub/lighthouse/discover/mobile/LobeHub_com_discover.html
diff --git a/docs/development/others/lighthouse.zh-CN.mdx b/docs/development/others/lighthouse.zh-CN.mdx
index 50dd8170379..814c68bab09 100644
--- a/docs/development/others/lighthouse.zh-CN.mdx
+++ b/docs/development/others/lighthouse.zh-CN.mdx
@@ -30,11 +30,11 @@ tags:
| ![][discover-desktop] | ![][discover-mobile] |
| [⚡️ Lighthouse Report][discover-desktop-report] | [⚡️ Lighthouse Report][discover-mobile-report] |
-[chat-desktop]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/desktop/pagespeed.svg
-[chat-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/desktop/LobeHub_com_chat.html
-[chat-mobile]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/chat/mobile/pagespeed.svg
-[chat-mobile-report]: https://lobehub.github.io/lobe-chat/lighthouse/chat/mobile/LobeHub_com_chat.html
-[discover-desktop]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/discover/desktop/pagespeed.svg
-[discover-desktop-report]: https://lobehub.github.io/lobe-chat/lighthouse/discover/desktop/LobeHub_com_discover.html
-[discover-mobile]: https://raw.githubusercontent.com/lobehub/lobe-chat/lighthouse/lighthouse/discover/mobile/pagespeed.svg
-[discover-mobile-report]: https://lobehub.github.io/lobe-chat/lighthouse/discover/mobile/LobeHub_com_discover.html
+[chat-desktop]: https://raw.githubusercontent.com/lobehub/lobehub/lighthouse/lighthouse/chat/desktop/pagespeed.svg
+[chat-desktop-report]: https://lobehub.github.io/lobehub/lighthouse/chat/desktop/LobeHub_com_chat.html
+[chat-mobile]: https://raw.githubusercontent.com/lobehub/lobehub/lighthouse/lighthouse/chat/mobile/pagespeed.svg
+[chat-mobile-report]: https://lobehub.github.io/lobehub/lighthouse/chat/mobile/LobeHub_com_chat.html
+[discover-desktop]: https://raw.githubusercontent.com/lobehub/lobehub/lighthouse/lighthouse/discover/desktop/pagespeed.svg
+[discover-desktop-report]: https://lobehub.github.io/lobehub/lighthouse/discover/desktop/LobeHub_com_discover.html
+[discover-mobile]: https://raw.githubusercontent.com/lobehub/lobehub/lighthouse/lighthouse/discover/mobile/pagespeed.svg
+[discover-mobile-report]: https://lobehub.github.io/lobehub/lighthouse/discover/mobile/LobeHub_com_discover.html
diff --git a/docs/development/start.mdx b/docs/development/start.mdx
index d0da8d0add2..0497c9e2586 100644
--- a/docs/development/start.mdx
+++ b/docs/development/start.mdx
@@ -59,13 +59,13 @@ We recommend using WebStorm as your integrated development environment (IDE).
1. **Get the code**: Clone the LobeHub code repository locally:
```bash
-git clone https://github.com/lobehub/lobe-chat.git
+git clone https://github.com/lobehub/lobehub.git
```
2. **Install dependencies**: Enter the project directory and install the required dependencies:
```bash
-cd lobe-chat
+cd lobehub
# If you use Bun
bun install
# If you use PNPM
@@ -110,6 +110,6 @@ For a detailed guide on internationalization implementation, please refer to [In
To support developers in better understanding and using the technology stack of LobeHub, we provide a comprehensive list of resources and references — [LobeHub Resources and References](/docs/development/basic/resources) - Visit our maintained list of resources, including tutorials, articles, and other useful links.
-We encourage developers to utilize these resources to deepen their learning and enhance their skills, join community discussions through [LobeHub GitHub Discussions](https://github.com/lobehub/lobe-chat/discussions) or [Discord](https://discord.com/invite/AYFPHvv2jT), ask questions, or share your experiences.
+We encourage developers to utilize these resources to deepen their learning and enhance their skills, join community discussions through [LobeHub GitHub Discussions](https://github.com/lobehub/lobehub/discussions) or [Discord](https://discord.com/invite/AYFPHvv2jT), ask questions, or share your experiences.
If you have any questions or need further assistance, please do not hesitate to contact us through the above channels.
diff --git a/docs/development/start.zh-CN.mdx b/docs/development/start.zh-CN.mdx
index 480fc3fa15c..2fc4725e8c7 100644
--- a/docs/development/start.zh-CN.mdx
+++ b/docs/development/start.zh-CN.mdx
@@ -57,13 +57,13 @@ src
1. **获取代码**:克隆 LobeHub 的代码库到本地:
```bash
-git clone https://github.com/lobehub/lobe-chat.git
+git clone https://github.com/lobehub/lobehub.git
```
2. **安装依赖**:进入项目目录,并安装所需依赖:
```bash
-cd lobe-chat
+cd lobehub
# 如果你使用 Bun
bun install
# 如果你使用 PNPM
@@ -108,6 +108,6 @@ LobeHub 采用 `i18next` 和 `lobe-i18n` 实现多语言支持,确保用户全
为了支持开发者更好地理解和使用 LobeHub 的技术栈,我们提供了一份详尽的资源与参考列表 —— [LobeHub 资源与参考](/zh/docs/development/basic/resources) - 访问我们维护的资源列表,包括教程、文章和其他有用的链接。
-我们鼓励开发者利用这些资源深入学习和提升技能,通过 [LobeHub GitHub Discussions](https://github.com/lobehub/lobe-chat/discussions) 或者 [Discord](https://discord.com/invite/AYFPHvv2jT) 加入社区讨论,提出问题或分享你的经验。
+我们鼓励开发者利用这些资源深入学习和提升技能,通过 [LobeHub GitHub Discussions](https://github.com/lobehub/lobehub/discussions) 或者 [Discord](https://discord.com/invite/AYFPHvv2jT) 加入社区讨论,提出问题或分享你的经验。
如果你有任何疑问,或者需要进一步的帮助,请不要犹豫,请通过上述渠道与我们联系。
diff --git a/docs/self-hosting/advanced/feature-flags.mdx b/docs/self-hosting/advanced/feature-flags.mdx
index d09a5305a72..611e68259b9 100644
--- a/docs/self-hosting/advanced/feature-flags.mdx
+++ b/docs/self-hosting/advanced/feature-flags.mdx
@@ -57,4 +57,4 @@ You can achieve various feature combinations using the above configuration synta
| `commercial_hide_github` | Hides GitHub-related links in settings footer (requires commercial license). | Disabled |
| `commercial_hide_docs` | Hides documentation and help menu including changelog, docs, and feedback (requires commercial license). | Disabled |
-You can always check the [featureFlags](https://github.com/lobehub/lobe-chat/blob/main/src/config/featureFlags/schema.ts) to get the latest list of feature flags.
+You can always check the [featureFlags](https://github.com/lobehub/lobehub/blob/main/src/config/featureFlags/schema.ts) to get the latest list of feature flags.
diff --git a/docs/self-hosting/advanced/feature-flags.zh-CN.mdx b/docs/self-hosting/advanced/feature-flags.zh-CN.mdx
index b03041d0446..fd1a5f03b45 100644
--- a/docs/self-hosting/advanced/feature-flags.zh-CN.mdx
+++ b/docs/self-hosting/advanced/feature-flags.zh-CN.mdx
@@ -53,4 +53,4 @@ tags:
| `commercial_hide_github` | 隐藏设置页面底部的 GitHub 相关链接(需要商业授权)。 | 关闭 |
| `commercial_hide_docs` | 隐藏文档和帮助菜单,包括更新日志、文档和反馈(需要商业授权)。 | 关闭 |
-你可以随时检查 [featureFlags](https://github.com/lobehub/lobe-chat/blob/main/src/config/featureFlags/schema.ts) 以获取最新的特性标志列表。
+你可以随时检查 [featureFlags](https://github.com/lobehub/lobehub/blob/main/src/config/featureFlags/schema.ts) 以获取最新的特性标志列表。
diff --git a/docs/self-hosting/advanced/knowledge-base.mdx b/docs/self-hosting/advanced/knowledge-base.mdx
index d9abf3fabc3..0795ab41f25 100644
--- a/docs/self-hosting/advanced/knowledge-base.mdx
+++ b/docs/self-hosting/advanced/knowledge-base.mdx
@@ -22,12 +22,12 @@ LobeHub supports file upload and knowledge base management. This feature relies
PostgreSQL is a powerful open-source relational database system, and PGVector is its extension for vector operations.
- **Purpose**: Store structured data and vector indexes
-- **Deployment Tip**: Use official Docker image for quick deployment
+- **Deployment Tip**: Use the ParadeDB Docker image for quick deployment with pgvector and pg\_search plugins
Deployment script example:
```
-docker run -p 5432:5432 -d --name pg -e POSTGRES_PASSWORD=mysecretpassword pgvector/pgvector:pg17
+docker run -p 5432:5432 -d --name pg -e POSTGRES_PASSWORD=mysecretpassword paradedb/paradedb:latest-pg17
```
- **Note**: Ensure sufficient resources for vector operations
diff --git a/docs/self-hosting/advanced/knowledge-base.zh-CN.mdx b/docs/self-hosting/advanced/knowledge-base.zh-CN.mdx
index 349cf3865a3..07f9b103e55 100644
--- a/docs/self-hosting/advanced/knowledge-base.zh-CN.mdx
+++ b/docs/self-hosting/advanced/knowledge-base.zh-CN.mdx
@@ -20,12 +20,12 @@ LobeHub 支持文件上传 / 知识库管理。该功能依赖于以下核心技
PostgreSQL 是一个强大的开源关系型数据库系统,而 PGVector 是其扩展,为向量操作提供支持。
- **用途**:存储结构化数据和向量索引
-- **部署建议**:使用官方 Docker 镜像可以快速部署 PostgreSQL 和 PGVector
+- **部署建议**:使用 ParadeDB Docker 镜像可以快速部署包含 pgvector 和 pg\_search 插件的 PostgreSQL
示例部署脚本:
```
-docker run -p 5432:5432 -d --name pg -e POSTGRES_PASSWORD=mysecretpassword pgvector/pgvector:pg17
+docker run -p 5432:5432 -d --name pg -e POSTGRES_PASSWORD=mysecretpassword paradedb/paradedb:latest-pg17
```
- **注意事项**:确保分配足够的资源以处理向量操作
diff --git a/docs/self-hosting/advanced/online-search.mdx b/docs/self-hosting/advanced/online-search.mdx
index 53d11b14b33..6e7862fdc56 100644
--- a/docs/self-hosting/advanced/online-search.mdx
+++ b/docs/self-hosting/advanced/online-search.mdx
@@ -191,7 +191,7 @@ This URL should point to a functional SearXNG instance. You can choose to self-h
You can find publicly available SearXNG instances in the [SearXNG instance list](https://searx.space/). Choose an instance that is fast and reliable, and then configure its URL in LobeHub.
-> Note that the `searxng` you use must have `json` output enabled; otherwise, the `lobe-chat` call will result in an error. If self-hosting, find the `searxng` configuration file and add `json` as shown below.
+> Note that the `searxng` you use must have `json` output enabled; otherwise, the `lobehub` call will result in an error. If self-hosting, find the `searxng` configuration file and add `json` as shown below.
```bash
$ vi searxng/settings.yml
diff --git a/docs/self-hosting/advanced/online-search.zh-CN.mdx b/docs/self-hosting/advanced/online-search.zh-CN.mdx
index 1e48f660dcf..a9af246822a 100644
--- a/docs/self-hosting/advanced/online-search.zh-CN.mdx
+++ b/docs/self-hosting/advanced/online-search.zh-CN.mdx
@@ -186,7 +186,7 @@ SEARXNG_URL=https://searxng-instance.com
您可以在 [SearXNG 实例列表](https://searx.space/) 中找到公开可用的 SearXNG 实例。选择一个响应速度快、可靠性高的实例,然后将其 URL 配置到 LobeHub 中。
-> 注意,使用的 `searxng` 必须开启 `json` 输出,否则 `lobe-chat` 调用会报错。如果是自托管,类似下面这样,找到 `searxng` 的配置文件,追加 `json` 即可。
+> 注意,使用的 `searxng` 必须开启 `json` 输出,否则 `lobehub` 调用会报错。如果是自托管,类似下面这样,找到 `searxng` 的配置文件,追加 `json` 即可。
```bash
$ vi searxng/settings.yml
diff --git a/docs/self-hosting/advanced/redis.mdx b/docs/self-hosting/advanced/redis.mdx
index 6fad23869fe..90134bb3217 100644
--- a/docs/self-hosting/advanced/redis.mdx
+++ b/docs/self-hosting/advanced/redis.mdx
@@ -1,6 +1,6 @@
---
title: Configure Redis Cache Service
-description: Learn how to configure Redis cache service to optimize LobeChat performance and session management.
+description: Learn how to configure Redis cache service to optimize LobeHub performance and session management.
tags:
- Redis
- Cache
@@ -10,17 +10,17 @@ tags:
# Configure Redis Cache Service
-LobeChat uses Redis as a high-performance cache and session storage service to optimize system performance and manage user authentication state.
+LobeHub uses Redis as a high-performance cache and session storage service to optimize system performance and manage user authentication state.
<Callout type={'info'}>
- LobeChat uses the standard Redis protocol (via ioredis library), supporting any Redis
+ LobeHub uses the standard Redis protocol (via ioredis library), supporting any Redis
protocol-compatible service, including official Redis, self-hosted Redis, and cloud provider Redis
services (such as AWS ElastiCache, Alibaba Cloud Redis, etc.).
</Callout>
## Use Cases
-Redis is used in LobeChat for the following scenarios:
+Redis is used in LobeHub for the following scenarios:
### Authentication Session Storage
@@ -57,7 +57,7 @@ Caches Agent configuration data to reduce database queries and improve response
### `REDIS_PREFIX`
- The prefix for Redis keys, used to isolate LobeChat data in a shared Redis instance.
+ The prefix for Redis keys, used to isolate LobeHub data in a shared Redis instance.
- Default: `lobechat`
- Example: `REDIS_PREFIX=my-lobechat`
@@ -119,7 +119,7 @@ REDIS_PREFIX=lobechat
## Notes
<Callout type={'warning'}>
- Redis is an optional service. If `REDIS_URL` is not configured, LobeChat will still function
+ Redis is an optional service. If `REDIS_URL` is not configured, LobeHub will still function
normally, but will lose the caching and session management optimizations mentioned above.
</Callout>
diff --git a/docs/self-hosting/advanced/redis.zh-CN.mdx b/docs/self-hosting/advanced/redis.zh-CN.mdx
index 659cfdeb5de..ef8feacaf38 100644
--- a/docs/self-hosting/advanced/redis.zh-CN.mdx
+++ b/docs/self-hosting/advanced/redis.zh-CN.mdx
@@ -1,6 +1,6 @@
---
title: 配置 Redis 缓存服务
-description: 了解如何配置 Redis 缓存服务以优化 LobeChat 的性能和会话管理。
+description: 了解如何配置 Redis 缓存服务以优化 LobeHub 的性能和会话管理。
tags:
- Redis
- 缓存
@@ -10,17 +10,17 @@ tags:
# 配置 Redis 缓存服务
-LobeChat 使用 Redis 作为高性能缓存和会话存储服务,用于优化系统性能和管理用户认证状态。
+LobeHub 使用 Redis 作为高性能缓存和会话存储服务,用于优化系统性能和管理用户认证状态。
<Callout type={'info'}>
- LobeChat 使用标准 Redis 协议(通过 ioredis 库),支持任何兼容 Redis 协议的服务,包括 Redis
+ LobeHub 使用标准 Redis 协议(通过 ioredis 库),支持任何兼容 Redis 协议的服务,包括 Redis
官方服务、自部署 Redis、以及云服务商提供的 Redis 服务(如 AWS ElastiCache、阿里云 Redis
等)。
</Callout>
## 使用场景
-Redis 在 LobeChat 中主要用于以下场景:
+Redis 在 LobeHub 中主要用于以下场景:
### 认证会话存储
@@ -57,7 +57,7 @@ Redis 在 LobeChat 中主要用于以下场景:
### `REDIS_PREFIX`
- Redis 键的前缀,用于在共享 Redis 实例中隔离 LobeChat 的数据。
+ Redis 键的前缀,用于在共享 Redis 实例中隔离 LobeHub 的数据。
- 默认值:`lobechat`
- 示例:`REDIS_PREFIX=my-lobechat`
@@ -118,7 +118,7 @@ REDIS_PREFIX=lobechat
## 注意事项
<Callout type={'warning'}>
- Redis 是可选服务。如果不配置 `REDIS_URL`,LobeChat 仍然可以正常运行,但会失去上述缓存和会话管理的优化功能。
+ Redis 是可选服务。如果不配置 `REDIS_URL`,LobeHub 仍然可以正常运行,但会失去上述缓存和会话管理的优化功能。
</Callout>
- **内存管理**:Redis 是内存数据库,请确保服务器有足够的内存
diff --git a/docs/self-hosting/advanced/redis/upstash.mdx b/docs/self-hosting/advanced/redis/upstash.mdx
index 5a644e9bbb3..7d4a9eb9137 100644
--- a/docs/self-hosting/advanced/redis/upstash.mdx
+++ b/docs/self-hosting/advanced/redis/upstash.mdx
@@ -1,6 +1,6 @@
---
title: Configuring Upstash Redis Service
-description: Step-by-step guide to configure Upstash Redis for LobeChat cache and session storage.
+description: Step-by-step guide to configure Upstash Redis for LobeHub cache and session storage.
tags:
- Upstash
- Redis
@@ -10,7 +10,7 @@ tags:
# Configuring Upstash Redis Service
-[Upstash](https://upstash.com/) is a serverless Redis service that provides a free tier and pay-as-you-go pricing, making it ideal for LobeChat deployments.
+[Upstash](https://upstash.com/) is a serverless Redis service that provides a free tier and pay-as-you-go pricing, making it ideal for LobeHub deployments.
## Configuration Steps
@@ -37,7 +37,7 @@ tags:
```
<Callout type={'info'}>
- Upstash uses `rediss://` (with double 's') for TLS connections. LobeChat supports this format automatically.
+ Upstash uses `rediss://` (with double 's') for TLS connections. LobeHub supports this format automatically.
</Callout>
</Steps>
diff --git a/docs/self-hosting/advanced/redis/upstash.zh-CN.mdx b/docs/self-hosting/advanced/redis/upstash.zh-CN.mdx
index 3f4b363838a..4e9e7592632 100644
--- a/docs/self-hosting/advanced/redis/upstash.zh-CN.mdx
+++ b/docs/self-hosting/advanced/redis/upstash.zh-CN.mdx
@@ -1,6 +1,6 @@
---
title: 配置 Upstash Redis 服务
-description: 详细指南:如何配置 Upstash Redis 用于 LobeChat 的缓存和会话存储。
+description: 详细指南:如何配置 Upstash Redis 用于 LobeHub 的缓存和会话存储。
tags:
- Upstash
- Redis
@@ -10,7 +10,7 @@ tags:
# 配置 Upstash Redis 服务
-[Upstash](https://upstash.com/) 是一个 Serverless Redis 服务,提供免费额度和按量付费模式,非常适合 LobeChat 部署使用。
+[Upstash](https://upstash.com/) 是一个 Serverless Redis 服务,提供免费额度和按量付费模式,非常适合 LobeHub 部署使用。
## 配置步骤
@@ -37,7 +37,7 @@ tags:
```
<Callout type={'info'}>
- Upstash 使用 `rediss://`(双 's')表示 TLS 连接,LobeChat 自动支持此格式。
+ Upstash 使用 `rediss://`(双's')表示 TLS 连接,LobeHub 自动支持此格式。
</Callout>
</Steps>
diff --git a/docs/self-hosting/advanced/s3/rustfs.mdx b/docs/self-hosting/advanced/s3/rustfs.mdx
index 934b37f0abe..b3fb9e8c430 100644
--- a/docs/self-hosting/advanced/s3/rustfs.mdx
+++ b/docs/self-hosting/advanced/s3/rustfs.mdx
@@ -12,131 +12,131 @@ tags:
We need to configure an S3-compatible storage service in the server-side database to store files.
<Callout type={'info'}>
-Due to recent changes in MinIO's commercial strategy, we no longer recommend MinIO as the S3 storage backend. Please migrate to open-source solutions such as [RustFS](https://rustfs.com/) or [ceph](https://ceph.io/), or to cloud providers like Tencent Cloud Object Storage or Cloudflare R2.
+ Due to recent changes in MinIO's commercial strategy, we no longer recommend MinIO as the S3 storage backend. Please migrate to open-source solutions such as [RustFS](https://rustfs.com/) or [ceph](https://ceph.io/), or to cloud providers like Tencent Cloud Object Storage or Cloudflare R2.
</Callout>
## Configuration Steps
<Steps>
-### Deploy RustFS
-
-First, pull the RustFS Docker image:
-
-```shell
-docker pull rustfs/rustfs:latest
-```
-
-You can inspect its version with the following command. We recommend version v1.0.0 or above:
-
-```shell
-docker inspect --format='{{index .Config.Labels "version"}}' rustfs/rustfs:latest
-```
-
-We recommend using Docker Compose to deploy RustFS:
-
-```yml
-services:
- rustfs:
- image: rustfs/rustfs:latest
- container_name: lobe-rustfs
- ports:
- - '9000:9000'
- - '9001:9001'
- environment:
- - RUSTFS_CONSOLE_ENABLE=true
- - RUSTFS_ACCESS_KEY=<YOUR_ACCESS_KEY>
- - RUSTFS_SECRET_KEY=<YOUR_SECRET_KEY>
- volumes:
- - rustfs-data:/data
-
-volumes:
- rustfs-data:
-```
-
-Then start RustFS:
-
-```shell
-docker compose up -d
-```
-
-### Create a Bucket
-
-Open the RustFS WebUI (`http://localhost:9001/`) and you will be redirected to the login screen. Enter the username (`RUSTFS_ACCESS_KEY` in the `docker-compose.yml`) and password (`RUSTFS_SECRET_KEY` in the same file) to sign in.
-
-Click `Object Storage` in the left sidebar, then the `Create Bucket` button in the top-right corner to create a new bucket. This example uses the name `lobe`. Leave Versioning and Object Lock disabled (default settings).
-
-<Image alt={"Create Bucket"} src={'https://github.com/user-attachments/assets/27c37617-a813-4de5-b0bf-c7167999c856'} />
-
-Go to the bucket and click `Settings`, choose `Custom` for the policy, and paste the following JSON to make the bucket public-read/private-write:
-
-```json
-{
- "ID": "",
- "Version": "2012-10-17",
- "Statement": [
- {
- "Sid": "",
- "Effect": "Allow",
- "Principal": {
- "AWS": [
- "*"
- ]
- },
- "Action": [
- "s3:GetObject"
- ],
- "NotAction": [],
- "Resource": [
- "arn:aws:s3:::lobe/*"
- ],
- "NotResource": [],
- "Condition": {}
- }
- ]
-}
-```
-
-Save the settings to apply the policy.
-
-### Configure Access Keys
-
-<Callout type={'warning'}>
-You can reuse the `RUSTFS_ACCESS_KEY` and `RUSTFS_SECRET_KEY` defined in the `docker-compose.yml`, but for better security we recommend creating a dedicated access key.
-</Callout>
-
-Click `Access Key` in the left sidebar, then `Add Access Key` to create a new key. The name is arbitrary, and you can keep the default main-account policy.
-
-Copy the generated Access Key and Secret Key (the `Export` button lets you save the JSON locally). The English labels in the UI are confusing, but remember the shorter string is the Access Key and the longer string is the Secret Key (the exported JSON is correct).
-
-<Image alt={"Add Key"} src={'https://github.com/user-attachments/assets/81f18b20-3918-4f77-8571-07d0c4a79aec'} />
-
-<Image alt={"Export Key"} src={'https://github.com/user-attachments/assets/4dde41ec-985b-4781-8c77-aac65555a32f'} />
-
-### Configure Reverse Proxy
+ ### Deploy RustFS
-You also need reverse-proxy rules so that RustFS is accessible from the LAN/public internet. Map the following ports to domains:
+ First, pull the RustFS Docker image:
-| Domain | Port | Required |
-| ---------------------------- | ------ | -------- |
-| `lobe-s3-api.example.com` | `9000` | Yes |
-| `lobe-s3-ui.example.com` | `9001` | |
+ ```shell
+ docker pull rustfs/rustfs:latest
+ ```
-After completing the reverse proxy, remember to configure the corresponding SSL certificate and enable HTTPS access.
+ You can inspect its version with the following command. We recommend version v1.0.0 or above:
-### Set Environment Variables
+ ```shell
+ docker inspect --format='{{index .Config.Labels "version"}}' rustfs/rustfs:latest
+ ```
-Update the LobeChat `.env` file with the following environment variables to use RustFS as the S3 backend:
+ We recommend using Docker Compose to deploy RustFS:
-```shell
-# RustFS Access Key / Secret Key
-S3_ACCESS_KEY_ID=<YOUR_ACCESS_KEY>
-S3_SECRET_ACCESS_KEY=<YOUR_SECRET_KEY>
-# RustFS API endpoint
-S3_ENDPOINT=https://lobe-s3-api.example.com
-# Bucket name
-S3_BUCKET=lobe
-# Public domain for accessing the bucket
-S3_PUBLIC_DOMAIN=https://lobe-s3-api.example.com
-S3_ENABLE_PATH_STYLE=1
-```
+ ```yml
+ services:
+ rustfs:
+ image: rustfs/rustfs:latest
+ container_name: lobe-rustfs
+ ports:
+ - '9000:9000'
+ - '9001:9001'
+ environment:
+ - RUSTFS_CONSOLE_ENABLE=true
+ - RUSTFS_ACCESS_KEY=<YOUR_ACCESS_KEY>
+ - RUSTFS_SECRET_KEY=<YOUR_SECRET_KEY>
+ volumes:
+ - rustfs-data:/data
+
+ volumes:
+ rustfs-data:
+ ```
+
+ Then start RustFS:
+
+ ```shell
+ docker compose up -d
+ ```
+
+ ### Create a Bucket
+
+ Open the RustFS WebUI (`http://localhost:9001/`) and you will be redirected to the login screen. Enter the username (`RUSTFS_ACCESS_KEY` in the `docker-compose.yml`) and password (`RUSTFS_SECRET_KEY` in the same file) to sign in.
+
+ Click `Object Storage` in the left sidebar, then the `Create Bucket` button in the top-right corner to create a new bucket. This example uses the name `lobe`. Leave Versioning and Object Lock disabled (default settings).
+
+ <Image alt={"Create Bucket"} src={'https://github.com/user-attachments/assets/27c37617-a813-4de5-b0bf-c7167999c856'} />
+
+ Go to the bucket and click `Settings`, choose `Custom` for the policy, and paste the following JSON to make the bucket public-read/private-write:
+
+ ```json
+ {
+ "ID": "",
+ "Version": "2012-10-17",
+ "Statement": [
+ {
+ "Sid": "",
+ "Effect": "Allow",
+ "Principal": {
+ "AWS": [
+ "*"
+ ]
+ },
+ "Action": [
+ "s3:GetObject"
+ ],
+ "NotAction": [],
+ "Resource": [
+ "arn:aws:s3:::lobe/*"
+ ],
+ "NotResource": [],
+ "Condition": {}
+ }
+ ]
+ }
+ ```
+
+ Save the settings to apply the policy.
+
+ ### Configure Access Keys
+
+ <Callout type={'warning'}>
+ You can reuse the `RUSTFS_ACCESS_KEY` and `RUSTFS_SECRET_KEY` defined in the `docker-compose.yml`, but for better security we recommend creating a dedicated access key.
+ </Callout>
+
+ Click `Access Key` in the left sidebar, then `Add Access Key` to create a new key. The name is arbitrary, and you can keep the default main-account policy.
+
+ Copy the generated Access Key and Secret Key (the `Export` button lets you save the JSON locally). The English labels in the UI are confusing, but remember the shorter string is the Access Key and the longer string is the Secret Key (the exported JSON is correct).
+
+ <Image alt={"Add Key"} src={'https://github.com/user-attachments/assets/81f18b20-3918-4f77-8571-07d0c4a79aec'} />
+
+ <Image alt={"Export Key"} src={'https://github.com/user-attachments/assets/4dde41ec-985b-4781-8c77-aac65555a32f'} />
+
+ ### Configure Reverse Proxy
+
+ You also need reverse-proxy rules so that RustFS is accessible from the LAN/public internet. Map the following ports to domains:
+
+ | Domain | Port | Required |
+ | ------------------------- | ------ | -------- |
+ | `lobe-s3-api.example.com` | `9000` | Yes |
+ | `lobe-s3-ui.example.com` | `9001` | |
+
+ After completing the reverse proxy, remember to configure the corresponding SSL certificate and enable HTTPS access.
+
+ ### Set Environment Variables
+
+ Update the LobeHub `.env` file with the following environment variables to use RustFS as the S3 backend:
+
+ ```shell
+ # RustFS Access Key / Secret Key
+ S3_ACCESS_KEY_ID=<YOUR_ACCESS_KEY>
+ S3_SECRET_ACCESS_KEY=<YOUR_SECRET_KEY>
+ # RustFS API endpoint
+ S3_ENDPOINT=https://lobe-s3-api.example.com
+ # Bucket name
+ S3_BUCKET=lobe
+ # Public domain for accessing the bucket
+ S3_PUBLIC_DOMAIN=https://lobe-s3-api.example.com
+ S3_ENABLE_PATH_STYLE=1
+ ```
</Steps>
diff --git a/docs/self-hosting/advanced/s3/rustfs.zh-CN.mdx b/docs/self-hosting/advanced/s3/rustfs.zh-CN.mdx
index 69c52994c94..7ca47259430 100644
--- a/docs/self-hosting/advanced/s3/rustfs.zh-CN.mdx
+++ b/docs/self-hosting/advanced/s3/rustfs.zh-CN.mdx
@@ -11,133 +11,132 @@ tags:
在服务端数据库中我们需要配置 S3 存储服务来存储文件。
-
<Callout type={'info'}>
-由于近期 MinIO 的商业化策略调整,我们不再推荐使用 MinIO 作为 S3 存储服务,建议所有仍在使用 MinIO 的用户迁移至 [RustFS](https://rustfs.com/) 或者 [ceph](https://ceph.io/) 等开源的 S3 存储服务或者腾讯云对象存储、Cloudflare R2 等云服务商的 S3 存储服务。
+ 由于近期 MinIO 的商业化策略调整,我们不再推荐使用 MinIO 作为 S3 存储服务,建议所有仍在使用 MinIO 的用户迁移至 [RustFS](https://rustfs.com/) 或者 [ceph](https://ceph.io/) 等开源的 S3 存储服务或者腾讯云对象存储、Cloudflare R2 等云服务商的 S3 存储服务。
</Callout>
## 配置步骤
<Steps>
-### 部署 RustFS
-
-首先,拉取 RustFS 的 Docker 镜像:
-
-```shell
-docker pull rustfs/rustfs:latest
-```
-
-你可以使用如下命令来查看其版本,建议使用 v1.0.0 及以上版本:
-
-```shell
-docker inspect --format='{{index .Config.Labels "version"}}' rustfs/rustfs:latest
-```
-
-我们推荐使用 Docker Compose 来部署 RustFS:
-
-```yml
-services:
- rustfs:
- image: rustfs/rustfs:latest
- container_name: lobe-rustfs
- ports:
- - '9000:9000'
- - '9001:9001'
- environment:
- - RUSTFS_CONSOLE_ENABLE=true
- - RUSTFS_ACCESS_KEY=<YOUR_ACCESS_KEY>
- - RUSTFS_SECRET_KEY=<YOUR_SECRET_KEY>
- volumes:
- - rustfs-data:/data
-
-volumes:
- rustfs-data:
-```
-
-然后,启动 RustFS:
-
-```shell
-docker compose up -d
-```
-
-### 创建存储桶
-
-访问 RustFS 的 WebUI(`http://localhost:9001/`),即可自动跳转到登录页。输入账号(上述 `docker-compose.yml` 文件中的 `RUSTFS_ACCESS_KEY`)、密码(上述 `docker-compose.yml` 文件中的 `RUSTFS_SECRET_KEY`),即可登录。
-
-点击左侧边栏的 `对象存储` 菜单,右上角 `创建存储桶` 按钮,创建一个新的存储桶(Bucket)。创建存储桶时将指定其名称,下文以 `lobe` 为例。版本、对象锁依照默认配置不开启。
-
-<Image alt={"Create Bucket"} src={'https://github.com/user-attachments/assets/27c37617-a813-4de5-b0bf-c7167999c856'} />
-
-点击存储桶 - `配置` 按钮,选择策略为 `自定义`,然后填入如下 JSON,设置存储桶的权限为 `公有读私有写`:
-
-```json
-{
- "ID": "",
- "Version": "2012-10-17",
- "Statement": [
- {
- "Sid": "",
- "Effect": "Allow",
- "Principal": {
- "AWS": [
- "*"
- ]
- },
- "Action": [
- "s3:GetObject"
- ],
- "NotAction": [],
- "Resource": [
- "arn:aws:s3:::lobe/*"
- ],
- "NotResource": [],
- "Condition": {}
- }
- ]
-}
-```
-
-点击保存即可。
-
-### 设置访问密钥
-
-<Callout type={'warning'}>
- 有关这部分,你可以直接使用在 `docker-compose.yml` 文件中配置的 `RUSTFS_ACCESS_KEY` 和 `RUSTFS_SECRET_KEY`,但出于安全考虑,我们推荐你手动创建一个访问密钥。
-</Callout>
-
-点击左侧边栏的 `访问密钥` 菜单,右上角 `添加访问密钥` 按钮,创建一个新的访问密钥(Access Key)。名称随意,按照默认配置使用主账号策略即可。
-
-记录好得到的访问密钥和密钥(你可以点击 `导出` 按钮以在本地保存)。这里 RustFS 的翻译有点迷惑,但你只需要记住上面那个短的是 `Access Key`,长的是 `Secret Key` 即可(导出的 JSON 中是对的)。
-
-<Image alt={"Add Key"} src={'https://github.com/user-attachments/assets/81f18b20-3918-4f77-8571-07d0c4a79aec'} />
-
-<Image alt={"Export Key"} src={'https://github.com/user-attachments/assets/4dde41ec-985b-4781-8c77-aac65555a32f'} />
-
-### 配置反向代理
+ ### 部署 RustFS
-你还需要完成反向代理配置,并确保局域网 / 公网能访问到 RustFS 的服务。请使用反向代理将以下服务端口映射到域名:
+ 首先,拉取 RustFS 的 Docker 镜像:
-| 域名 | 反代端口 | 是否必选 |
-| ---------------------- | ------ | ---- |
-| `lobe-s3-api.example.com` | `9000` | 必选 |
-| `lobe-s3-ui.example.com` | `9001` | |
+ ```shell
+ docker pull rustfs/rustfs:latest
+ ```
-完成反向代理后,记得配置对应的 SSL 证书,启用 HTTPS 访问。
+ 你可以使用如下命令来查看其版本,建议使用 v1.0.0 及以上版本:
-### 设置环境变量
+ ```shell
+ docker inspect --format='{{index .Config.Labels "version"}}' rustfs/rustfs:latest
+ ```
-修改 LobeChat 的 `.env` 文件,添加如下环境变量,即可完成配置,使用 RustFS 作为 S3 存储服务:
+ 我们推荐使用 Docker Compose 来部署 RustFS:
-```shell
-# RustFS 的鉴权 Access Key / Secret Key
-S3_ACCESS_KEY_ID=<YOUR_ACCESS_KEY>
-S3_SECRET_ACCESS_KEY=<YOUR_SECRET_KEY>
-# RustFS API 的请求端点
-S3_ENDPOINT=https://lobe-s3-api.example.com
-# 存储桶的名称
-S3_BUCKET=lobe
-# 存储桶对外的访问域名
-S3_PUBLIC_DOMAIN=https://lobe-s3-api.example.com
-S3_ENABLE_PATH_STYLE=1
-```
+ ```yml
+ services:
+ rustfs:
+ image: rustfs/rustfs:latest
+ container_name: lobe-rustfs
+ ports:
+ - '9000:9000'
+ - '9001:9001'
+ environment:
+ - RUSTFS_CONSOLE_ENABLE=true
+ - RUSTFS_ACCESS_KEY=<YOUR_ACCESS_KEY>
+ - RUSTFS_SECRET_KEY=<YOUR_SECRET_KEY>
+ volumes:
+ - rustfs-data:/data
+
+ volumes:
+ rustfs-data:
+ ```
+
+ 然后,启动 RustFS:
+
+ ```shell
+ docker compose up -d
+ ```
+
+ ### 创建存储桶
+
+ 访问 RustFS 的 WebUI(`http://localhost:9001/`),即可自动跳转到登录页。输入账号(上述 `docker-compose.yml` 文件中的 `RUSTFS_ACCESS_KEY`)、密码(上述 `docker-compose.yml` 文件中的 `RUSTFS_SECRET_KEY`),即可登录。
+
+ 点击左侧边栏的 `对象存储` 菜单,右上角 `创建存储桶` 按钮,创建一个新的存储桶(Bucket)。创建存储桶时将指定其名称,下文以 `lobe` 为例。版本、对象锁依照默认配置不开启。
+
+ <Image alt={"Create Bucket"} src={'https://github.com/user-attachments/assets/27c37617-a813-4de5-b0bf-c7167999c856'} />
+
+ 点击存储桶 - `配置` 按钮,选择策略为 `自定义`,然后填入如下 JSON,设置存储桶的权限为 `公有读私有写`:
+
+ ```json
+ {
+ "ID": "",
+ "Version": "2012-10-17",
+ "Statement": [
+ {
+ "Sid": "",
+ "Effect": "Allow",
+ "Principal": {
+ "AWS": [
+ "*"
+ ]
+ },
+ "Action": [
+ "s3:GetObject"
+ ],
+ "NotAction": [],
+ "Resource": [
+ "arn:aws:s3:::lobe/*"
+ ],
+ "NotResource": [],
+ "Condition": {}
+ }
+ ]
+ }
+ ```
+
+ 点击保存即可。
+
+ ### 设置访问密钥
+
+ <Callout type={'warning'}>
+ 有关这部分,你可以直接使用在 `docker-compose.yml` 文件中配置的 `RUSTFS_ACCESS_KEY` 和 `RUSTFS_SECRET_KEY`,但出于安全考虑,我们推荐你手动创建一个访问密钥。
+ </Callout>
+
+ 点击左侧边栏的 `访问密钥` 菜单,右上角 `添加访问密钥` 按钮,创建一个新的访问密钥(Access Key)。名称随意,按照默认配置使用主账号策略即可。
+
+ 记录好得到的访问密钥和密钥(你可以点击 `导出` 按钮以在本地保存)。这里 RustFS 的翻译有点迷惑,但你只需要记住上面那个短的是 `Access Key`,长的是 `Secret Key` 即可(导出的 JSON 中是对的)。
+
+ <Image alt={"Add Key"} src={'https://github.com/user-attachments/assets/81f18b20-3918-4f77-8571-07d0c4a79aec'} />
+
+ <Image alt={"Export Key"} src={'https://github.com/user-attachments/assets/4dde41ec-985b-4781-8c77-aac65555a32f'} />
+
+ ### 配置反向代理
+
+ 你还需要完成反向代理配置,并确保局域网 / 公网能访问到 RustFS 的服务。请使用反向代理将以下服务端口映射到域名:
+
+ | 域名 | 反代端口 | 是否必选 |
+ | ------------------------- | ------ | ---- |
+ | `lobe-s3-api.example.com` | `9000` | 必选 |
+ | `lobe-s3-ui.example.com` | `9001` | |
+
+ 完成反向代理后,记得配置对应的 SSL 证书,启用 HTTPS 访问。
+
+ ### 设置环境变量
+
+ 修改 LobeHub 的 `.env` 文件,添加如下环境变量,即可完成配置,使用 RustFS 作为 S3 存储服务:
+
+ ```shell
+ # RustFS 的鉴权 Access Key / Secret Key
+ S3_ACCESS_KEY_ID=<YOUR_ACCESS_KEY>
+ S3_SECRET_ACCESS_KEY=<YOUR_SECRET_KEY>
+ # RustFS API 的请求端点
+ S3_ENDPOINT=https://lobe-s3-api.example.com
+ # 存储桶的名称
+ S3_BUCKET=lobe
+ # 存储桶对外的访问域名
+ S3_PUBLIC_DOMAIN=https://lobe-s3-api.example.com
+ S3_ENABLE_PATH_STYLE=1
+ ```
</Steps>
diff --git a/docs/self-hosting/advanced/upstream-sync.zh-CN.mdx b/docs/self-hosting/advanced/upstream-sync.zh-CN.mdx
index 29acad83a82..015ace424e2 100644
--- a/docs/self-hosting/advanced/upstream-sync.zh-CN.mdx
+++ b/docs/self-hosting/advanced/upstream-sync.zh-CN.mdx
@@ -42,11 +42,11 @@ Docker 部署版本的升级非常简单,只需要重新部署 LobeHub 的最
<Steps>
### 停止并删除当前运行的 LobeHub 容器
- 假设 LobeHub 容器的名称是 `lobe-chat`,使用以下指令停止并删除当前运行的 LobeHub 容器:
+ 假设 LobeHub 容器的名称是 `lobehub`,使用以下指令停止并删除当前运行的 LobeHub 容器:
```fish
- docker stop lobe-chat
- docker rm lobe-chat
+ docker stop lobehub
+ docker rm lobehub
```
### 拉取最新的 LobeHub 镜像
@@ -54,7 +54,7 @@ Docker 部署版本的升级非常简单,只需要重新部署 LobeHub 的最
使用以下命令拉取 LobeHub 的最新 Docker 镜像:
```fish
- docker pull lobehub/lobe-chat
+ docker pull lobehub/lobehub
```
### 重新启动 Docker 容器
@@ -65,7 +65,7 @@ Docker 部署版本的升级非常简单,只需要重新部署 LobeHub 的最
docker run -d -p 3210:3210 \
-e OPENAI_API_KEY=sk-xxxx \
-e OPENAI_PROXY_URL=https://api-proxy.com/v1 \
- --name lobe-chat \
+ --name lobehub \
lobehub/lobe-chat
```
</Steps>
diff --git a/docs/self-hosting/advanced/auth.mdx b/docs/self-hosting/auth.mdx
similarity index 61%
rename from docs/self-hosting/advanced/auth.mdx
rename to docs/self-hosting/auth.mdx
index e75f7dafa5a..ee9d4fe9483 100644
--- a/docs/self-hosting/advanced/auth.mdx
+++ b/docs/self-hosting/auth.mdx
@@ -1,8 +1,8 @@
---
title: LobeHub Authentication Service Configuration
description: >-
- Learn how to configure external authentication services using Better Auth,
- Clerk, or Next Auth for centralized user authorization management. Supported
+ Learn how to configure external authentication services using Better Auth
+ for centralized user authorization management. Supported
authentication services include Auth0, Azure ID, etc.
tags:
- Authentication Service
@@ -12,17 +12,7 @@ tags:
# Authentication Service
-LobeHub supports the configuration of external authentication services using Better Auth, Clerk, or Next Auth for internal use within enterprises/organizations to centrally manage user authorization.
-
-<Callout type={'info'}>
- Looking for legacy authentication methods? See [Legacy Authentication](/docs/self-hosting/advanced/auth/legacy) for NextAuth and Clerk documentation.
-</Callout>
-
-Clerk is a comprehensive identity verification solution that has recently gained popularity. It provides a simple yet powerful API and services to handle user authentication and session management. Clerk's design philosophy is to offer a concise and modern authentication solution that enables developers to easily integrate and use it.
-
-LobeHub has deeply integrated with Clerk to provide users with a more secure and convenient login and registration experience. It also relieves developers from the burden of managing authentication logic. Clerk's concise and modern design philosophy aligns perfectly with LobeHub's goals, making user management on the entire platform more efficient and reliable.
-
-By setting the environment variables `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` and `CLERK_SECRET_KEY` in LobeHub's environment, you can enable and use Clerk.
+LobeHub supports the configuration of external authentication services using Better Auth for internal use within enterprises/organizations to centrally manage user authorization.
## Better Auth
@@ -40,12 +30,11 @@ By setting the environment variables `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` and `CL
To enable Better Auth in LobeHub, set the following environment variables:
-| Environment Variable | Type | Description |
-| -------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `NEXT_PUBLIC_ENABLE_BETTER_AUTH` | Required | Set to `1` to enable Better Auth service |
-| `AUTH_SECRET` | Required | Key used to encrypt session tokens. Generate using: `openssl rand -base64 32` |
-| `NEXT_PUBLIC_AUTH_URL` | Required | The browser-accessible base URL for Better Auth (e.g., `http://localhost:3010`, `https://LobeHub.com`). Optional for Vercel deployments (auto-detected from `VERCEL_URL`) |
-| `AUTH_SSO_PROVIDERS` | Optional | Comma-separated list of enabled SSO providers, e.g., `google,github,microsoft` |
+| Environment Variable | Type | Description |
+| ---------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `AUTH_SECRET` | Required | Key used to encrypt session tokens. Generate using: `openssl rand -base64 32` |
+| `NEXT_PUBLIC_AUTH_URL` | Required | The browser-accessible base URL for Better Auth (e.g., `http://localhost:3010`, `https://LobeHub.com`). Optional for Vercel deployments (auto-detected from `VERCEL_URL`) |
+| `AUTH_SSO_PROVIDERS` | Optional | Comma-separated list of enabled SSO providers, e.g., `google,github,microsoft` |
## Supported SSO Providers
@@ -116,63 +105,7 @@ When configuring OAuth providers, use the following callback URL format:
## Email Service Configuration
-Used by email verification, password reset, and magic-link delivery. Two providers are supported:
-
-### Option 1: Nodemailer (SMTP)
-
-Send emails via SMTP protocol, suitable for users with existing email services. See [Nodemailer SMTP docs](https://nodemailer.com/smtp/).
-
-| Environment Variable | Type | Description | Example |
-| ------------------------ | -------- | -------------------------------------------------------------- | --------------------- |
-| `EMAIL_SERVICE_PROVIDER` | Optional | Set to `nodemailer` (default) | `nodemailer` |
-| `SMTP_HOST` | Required | SMTP server hostname | `smtp.gmail.com` |
-| `SMTP_PORT` | Required | SMTP server port (`587` for TLS, `465` for SSL) | `587` |
-| `SMTP_SECURE` | Optional | `true` for SSL (port 465), `false` for TLS (port 587) | `false` |
-| `SMTP_USER` | Required | SMTP auth username | `[email protected]` |
-| `SMTP_PASS` | Required | SMTP auth password | `your-app-password` |
-| `SMTP_FROM` | Optional | Sender address (required for AWS SES), defaults to `SMTP_USER` | `[email protected]` |
-
-<Callout type={'warning'}>
- When using Gmail, you must use an App Password instead of your account password. Generate one at [Google App Passwords](https://myaccount.google.com/apppasswords).
-</Callout>
-
-### Option 2: Resend
-
-[Resend](https://resend.com/) is a modern email API service with simple setup, recommended for new users.
-
-| Environment Variable | Type | Description | Example |
-| ------------------------ | ----------- | ----------------------------------------- | --------------------------- |
-| `EMAIL_SERVICE_PROVIDER` | Required | Set to `resend` | `resend` |
-| `RESEND_API_KEY` | Required | Resend API Key | `re_xxxxxxxxxxxxxxxxxxxxxx` |
-| `RESEND_FROM` | Recommended | Sender address, must be a verified domain | `[email protected]` |
-
-<Callout type={'info'}>
- Before using Resend, you need to [verify your sending domain](https://resend.com/docs/dashboard/domains/introduction), otherwise emails can only be sent to your own address.
-</Callout>
-
-### Common Configuration
-
-Before using Better Auth, please set the following variables in LobeHub's environment variables:
-
-## Email Verification
-
-Enable email verification to ensure users own the email addresses they register with (off by default):
-
-| Environment Variable | Type | Description |
-| ------------------------- | -------- | ----------------------------------------------------------- |
-| `AUTH_EMAIL_VERIFICATION` | Optional | Set to `1` to require email verification after registration |
-
-<Callout type={'info'}>
- Email verification requires a working email service (SMTP or Resend) configured above. When enabled, users must verify their email address before they can sign in.
-</Callout>
-
-## Magic Link (Passwordless) Login
-
-Enable magic-link login (depends on a working email provider above, off by default):
-
-| Environment Variable | Type | Description |
-| ------------------------ | -------- | ------------------------------------------------------------------- |
-| `AUTH_ENABLE_MAGIC_LINK` | Optional | Set to `1` to enable passwordless magic-link login (off by default) |
+Email service is used for email verification, password reset, and magic link delivery. For detailed configuration, see [Email Service Configuration](/docs/self-hosting/auth/email).
<Callout type={'tip'}>
Go to [Environment Variables](/docs/self-hosting/environment-variables/auth#better-auth) for detailed information on all Better Auth variables.
@@ -233,10 +166,8 @@ Set the `AUTH_ALLOWED_EMAILS` environment variable with a comma-separated list o
Allow LobeHub to receive notifications when user information is updated in the identity provider. Supported providers include Casdoor and Logto. Please refer to the specific provider documentation for configuration details.
-### Database Session
-
-Allow the session store in database, see also the [Auth.js Session Documentation](https://authjs.dev/concepts/session-strategies#database-session).
+### Other SSO Providers
-## Other SSO Providers
+If you need to use an SSO provider not included in the list above, you can use [Generic OIDC](/docs/self-hosting/auth/providers/generic-oidc) to configure any OpenID Connect or OAuth 2.0 compliant provider.
-Please refer to the [Auth.js](https://authjs.dev/getting-started/authentication/oauth) documentation and feel free to submit a Pull Request.
+Feel free to submit a Pull Request to add more built-in SSO provider support. For details, see the [Better Auth documentation](https://www.better-auth.com/docs/concepts/oauth).
diff --git a/docs/self-hosting/advanced/auth.zh-CN.mdx b/docs/self-hosting/auth.zh-CN.mdx
similarity index 61%
rename from docs/self-hosting/advanced/auth.zh-CN.mdx
rename to docs/self-hosting/auth.zh-CN.mdx
index 513559857b5..ebcf5df9006 100644
--- a/docs/self-hosting/advanced/auth.zh-CN.mdx
+++ b/docs/self-hosting/auth.zh-CN.mdx
@@ -1,7 +1,7 @@
---
title: LobeHub 身份验证服务配置
description: >-
- 了解如何使用 Better Auth、Clerk 或 Next Auth 配置外部身份验证服务,以统一管理用户授权。支持的身份验证服务包括 Auth0、
+ 了解如何使用 Better Auth 配置外部身份验证服务,以统一管理用户授权。支持的身份验证服务包括 Auth0、
Azure ID 等。
tags:
- 身份验证服务
@@ -12,17 +12,7 @@ tags:
# 身份验证服务
-LobeHub 支持使用 Better Auth、Clerk 或者 Next Auth 配置外部身份验证服务,供企业 / 组织内部使用,统一管理用户授权。
-
-<Callout type={'info'}>
- 需要使用旧版身份验证方案?请参阅 [旧版身份验证](/zh/docs/self-hosting/advanced/auth/legacy) 了解 NextAuth 和 Clerk 的文档。
-</Callout>
-
-Clerk 是一个近期流行起来的全面的身份验证解决方案,它提供了简单而强大的 API 和服务来处理用户认证和会话管理。Clerk 的设计哲学是提供一套简洁、现代的认证解决方案,使得开发者可以轻松集成和使用。
-
-LobeHub 与 Clerk 做了深度集成,能够为用户提供一个更加安全、便捷的登录和注册体验,同时也为开发者减轻了管理身份验证逻辑的负担。Clerk 的简洁和现代的设计理念与 LobeHub 的目标非常契合,使得整个平台的用户管理更加高效和可靠。
-
-在 LobeHub 的环境变量中设置 `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` 和 `CLERK_SECRET_KEY`,即可开启和使用 Clerk。
+LobeHub 支持使用 Better Auth 配置外部身份验证服务,供企业 / 组织内部使用,统一管理用户授权。
## Better Auth
@@ -40,12 +30,11 @@ LobeHub 与 Clerk 做了深度集成,能够为用户提供一个更加安全
要在 LobeHub 中启用 Better Auth,请设置以下环境变量:
-| 环境变量 | 类型 | 描述 |
-| -------------------------------- | -- | --------------------------------------------------------------------------------------------------------------- |
-| `NEXT_PUBLIC_ENABLE_BETTER_AUTH` | 必选 | 设置为 `1` 以启用 Better Auth 服务 |
-| `AUTH_SECRET` | 必选 | 用于加密会话令牌的密钥。使用以下命令生成:`openssl rand -base64 32` |
-| `NEXT_PUBLIC_AUTH_URL` | 必选 | 浏览器可访问的 Better Auth 基础 URL(例如 `http://localhost:3010`、`https://LobeHub.com`)。Vercel 部署时可选(会自动从 `VERCEL_URL` 获取) |
-| `AUTH_SSO_PROVIDERS` | 可选 | 启用的 SSO 提供商列表,以逗号分隔,例如 `google,github,microsoft` |
+| 环境变量 | 类型 | 描述 |
+| ---------------------- | -- | --------------------------------------------------------------------------------------------------------------- |
+| `AUTH_SECRET` | 必选 | 用于加密会话令牌的密钥。使用以下命令生成:`openssl rand -base64 32` |
+| `NEXT_PUBLIC_AUTH_URL` | 必选 | 浏览器可访问的 Better Auth 基础 URL(例如 `http://localhost:3010`、`https://LobeHub.com`)。Vercel 部署时可选(会自动从 `VERCEL_URL` 获取) |
+| `AUTH_SSO_PROVIDERS` | 可选 | 启用的 SSO 提供商列表,以逗号分隔,例如 `google,github,microsoft` |
## 支持的 SSO 提供商
@@ -116,63 +105,7 @@ LobeHub 与 Clerk 做了深度集成,能够为用户提供一个更加安全
## 邮件服务配置
-用于邮箱验证、密码重置和魔法链接发送。支持两种邮件服务:
-
-### 方式一:Nodemailer(SMTP)
-
-使用 SMTP 协议发送邮件,适合已有邮箱服务的用户。参考 [Nodemailer SMTP 文档](https://nodemailer.com/smtp/)。
-
-| 环境变量 | 类型 | 描述 | 示例 |
-| ------------------------ | -- | ---------------------------------------------- | --------------------- |
-| `EMAIL_SERVICE_PROVIDER` | 可选 | 设置为 `nodemailer`(默认值) | `nodemailer` |
-| `SMTP_HOST` | 必选 | SMTP 服务器主机名 | `smtp.gmail.com` |
-| `SMTP_PORT` | 必选 | SMTP 服务器端口(TLS 通常为 `587`,SSL 为 `465`) | `587` |
-| `SMTP_SECURE` | 可选 | SSL 设置为 `true`(端口 465),TLS 设置为 `false`(端口 587) | `false` |
-| `SMTP_USER` | 必选 | SMTP 认证用户名 | `[email protected]` |
-| `SMTP_PASS` | 必选 | SMTP 认证密码 | `your-app-password` |
-| `SMTP_FROM` | 可选 | 发件人地址(AWS SES 必填),默认为 `SMTP_USER` | `[email protected]` |
-
-<Callout type={'warning'}>
- 使用 Gmail 时,需使用应用专用密码而非账户密码。前往 [Google 应用专用密码](https://myaccount.google.com/apppasswords) 生成。
-</Callout>
-
-### 方式二:Resend
-
-[Resend](https://resend.com/) 是一个现代邮件 API 服务,配置简单,推荐新用户使用。
-
-| 环境变量 | 类型 | 描述 | 示例 |
-| ------------------------ | -- | ------------------------- | --------------------------- |
-| `EMAIL_SERVICE_PROVIDER` | 必选 | 设置为 `resend` | `resend` |
-| `RESEND_API_KEY` | 必选 | Resend API Key | `re_xxxxxxxxxxxxxxxxxxxxxx` |
-| `RESEND_FROM` | 推荐 | 发件人地址,需为 Resend 已验证域名下的邮箱 | `[email protected]` |
-
-<Callout type={'info'}>
- 使用 Resend 前需先 [验证发件域名](https://resend.com/docs/dashboard/domains/introduction),否则只能发送到自己的邮箱。
-</Callout>
-
-### 通用配置
-
-在使用 Better Auth 之前,请先在 LobeHub 的环境变量中设置以下变量:
-
-## 邮箱验证
-
-启用邮箱验证以确保用户拥有其注册的邮箱地址(默认关闭):
-
-| 环境变量 | 类型 | 描述 |
-| ------------------------- | -- | -------------------- |
-| `AUTH_EMAIL_VERIFICATION` | 可选 | 设置为 `1` 以要求注册后进行邮箱验证 |
-
-<Callout type={'info'}>
- 邮箱验证需要上方已配置好的邮件服务(SMTP 或 Resend)。启用后,用户必须验证其邮箱地址才能登录。
-</Callout>
-
-## 魔法链接(免密)登录
-
-启用魔法链接登录(依赖上方已配置好的邮件服务,默认关闭):
-
-| 环境变量 | 类型 | 描述 |
-| ------------------------ | -- | ----------------------- |
-| `AUTH_ENABLE_MAGIC_LINK` | 可选 | 设置为 `1` 以启用魔法链接登录(默认关闭) |
+邮件服务用于邮箱验证、密码重置和魔法链接发送。详细配置请参阅 [邮件服务配置](/zh/docs/self-hosting/auth/email)。
<Callout type={'tip'}>
前往 [环境变量](/zh/docs/self-hosting/environment-variables/auth#better-auth) 可查阅所有 Better Auth 相关变量详情。
@@ -232,10 +165,8 @@ Better Auth 支持内置提供商(Google、GitHub、Microsoft、Apple、AWS Co
允许 LobeHub 在身份提供商中用户信息更新时接收通知。支持的提供商包括 Casdoor 和 Logto。请参考具体提供商文档进行配置。
-### 数据库会话
-
-允许会话存储在数据库中,详情请参阅 [Auth.js 会话文档](https://authjs.dev/concepts/session-strategies#database-session)。
+### 其他 SSO 提供商
-## 其他 SSO 提供商
+如果你需要使用上述列表中未包含的 SSO 提供商,可以使用 [Generic OIDC](/zh/docs/self-hosting/auth/providers/generic-oidc) 来配置任何符合 OpenID Connect 或 OAuth 2.0 标准的提供商。
-请参考 [Auth.js](https://authjs.dev/getting-started/authentication/oauth) 文档,欢迎提交 Pull Request。
+欢迎提交 Pull Request 来添加更多内置 SSO 提供商支持。详情请参考 [Better Auth 文档](https://www.better-auth.com/docs/concepts/oauth)。
diff --git a/docs/self-hosting/advanced/auth/clerk.mdx b/docs/self-hosting/auth/clerk.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/clerk.mdx
rename to docs/self-hosting/auth/clerk.mdx
diff --git a/docs/self-hosting/advanced/auth/clerk.zh-CN.mdx b/docs/self-hosting/auth/clerk.zh-CN.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/clerk.zh-CN.mdx
rename to docs/self-hosting/auth/clerk.zh-CN.mdx
diff --git a/docs/self-hosting/auth/email.mdx b/docs/self-hosting/auth/email.mdx
new file mode 100644
index 00000000000..b922ca54940
--- /dev/null
+++ b/docs/self-hosting/auth/email.mdx
@@ -0,0 +1,70 @@
+---
+title: Email Service Configuration
+description: Configure LobeHub email service for email verification, password reset, and magic link login.
+tags:
+ - Email Service
+ - SMTP
+ - Resend
+ - Email Verification
+ - Magic Link
+---
+
+# Email Service Configuration
+
+Email service is used for email verification, password reset, and magic link delivery. LobeHub supports two email service providers.
+
+## Nodemailer (SMTP)
+
+Send emails via SMTP protocol, suitable for users with existing email services. See [Nodemailer SMTP docs](https://nodemailer.com/smtp/).
+
+| Environment Variable | Type | Description | Example |
+| ------------------------ | -------- | -------------------------------------------------------------- | --------------------- |
+| `EMAIL_SERVICE_PROVIDER` | Optional | Set to `nodemailer` (default) | `nodemailer` |
+| `SMTP_HOST` | Required | SMTP server hostname | `smtp.gmail.com` |
+| `SMTP_PORT` | Required | SMTP server port (`587` for TLS, `465` for SSL) | `587` |
+| `SMTP_SECURE` | Optional | `true` for SSL (port 465), `false` for TLS (port 587) | `false` |
+| `SMTP_USER` | Required | SMTP auth username | `[email protected]` |
+| `SMTP_PASS` | Required | SMTP auth password | `your-app-password` |
+| `SMTP_FROM` | Optional | Sender address (required for AWS SES), defaults to `SMTP_USER` | `[email protected]` |
+
+<Callout type={'warning'}>
+ When using Gmail, you must use an App Password instead of your account password. Generate one at [Google App Passwords](https://myaccount.google.com/apppasswords).
+</Callout>
+
+## Resend
+
+[Resend](https://resend.com/) is a modern email API service with simple setup, recommended for new users.
+
+| Environment Variable | Type | Description | Example |
+| ------------------------ | ----------- | ----------------------------------------- | --------------------------- |
+| `EMAIL_SERVICE_PROVIDER` | Required | Set to `resend` | `resend` |
+| `RESEND_API_KEY` | Required | Resend API Key | `re_xxxxxxxxxxxxxxxxxxxxxx` |
+| `RESEND_FROM` | Recommended | Sender address, must be a verified domain | `[email protected]` |
+
+<Callout type={'info'}>
+ Before using Resend, you need to [verify your sending domain](https://resend.com/docs/dashboard/domains/introduction), otherwise emails can only be sent to your own address.
+</Callout>
+
+## Email Verification
+
+Enable email verification to ensure users own the email addresses they register with (off by default):
+
+| Environment Variable | Type | Description |
+| ------------------------- | -------- | ----------------------------------------------------------- |
+| `AUTH_EMAIL_VERIFICATION` | Optional | Set to `1` to require email verification after registration |
+
+<Callout type={'info'}>
+ Email verification requires a working email service (SMTP or Resend) configured above. When enabled, users must verify their email address before they can sign in.
+</Callout>
+
+## Magic Link (Passwordless) Login
+
+Enable magic-link login (depends on a working email provider above, off by default):
+
+| Environment Variable | Type | Description |
+| ------------------------ | -------- | ------------------------------------------------------------------- |
+| `AUTH_ENABLE_MAGIC_LINK` | Optional | Set to `1` to enable passwordless magic-link login (off by default) |
+
+<Callout type={'tip'}>
+ Go to [Environment Variables](/docs/self-hosting/environment-variables/auth#better-auth) for detailed information on all Better Auth variables.
+</Callout>
diff --git a/docs/self-hosting/auth/email.zh-CN.mdx b/docs/self-hosting/auth/email.zh-CN.mdx
new file mode 100644
index 00000000000..9b3a9bb1857
--- /dev/null
+++ b/docs/self-hosting/auth/email.zh-CN.mdx
@@ -0,0 +1,70 @@
+---
+title: 邮件服务配置
+description: 配置 LobeHub 的邮件服务,用于邮箱验证、密码重置和魔法链接登录。
+tags:
+ - 邮件服务
+ - SMTP
+ - Resend
+ - 邮箱验证
+ - 魔法链接
+---
+
+# 邮件服务配置
+
+邮件服务用于邮箱验证、密码重置和魔法链接发送。LobeHub 支持两种邮件服务提供商。
+
+## Nodemailer(SMTP)
+
+使用 SMTP 协议发送邮件,适合已有邮箱服务的用户。参考 [Nodemailer SMTP 文档](https://nodemailer.com/smtp/)。
+
+| 环境变量 | 类型 | 描述 | 示例 |
+| ------------------------ | -- | ---------------------------------------------- | --------------------- |
+| `EMAIL_SERVICE_PROVIDER` | 可选 | 设置为 `nodemailer`(默认值) | `nodemailer` |
+| `SMTP_HOST` | 必选 | SMTP 服务器主机名 | `smtp.gmail.com` |
+| `SMTP_PORT` | 必选 | SMTP 服务器端口(TLS 通常为 `587`,SSL 为 `465`) | `587` |
+| `SMTP_SECURE` | 可选 | SSL 设置为 `true`(端口 465),TLS 设置为 `false`(端口 587) | `false` |
+| `SMTP_USER` | 必选 | SMTP 认证用户名 | `[email protected]` |
+| `SMTP_PASS` | 必选 | SMTP 认证密码 | `your-app-password` |
+| `SMTP_FROM` | 可选 | 发件人地址(AWS SES 必填),默认为 `SMTP_USER` | `[email protected]` |
+
+<Callout type={'warning'}>
+ 使用 Gmail 时,需使用应用专用密码而非账户密码。前往 [Google 应用专用密码](https://myaccount.google.com/apppasswords) 生成。
+</Callout>
+
+## Resend
+
+[Resend](https://resend.com/) 是一个现代邮件 API 服务,配置简单,推荐新用户使用。
+
+| 环境变量 | 类型 | 描述 | 示例 |
+| ------------------------ | -- | ------------------------- | --------------------------- |
+| `EMAIL_SERVICE_PROVIDER` | 必选 | 设置为 `resend` | `resend` |
+| `RESEND_API_KEY` | 必选 | Resend API Key | `re_xxxxxxxxxxxxxxxxxxxxxx` |
+| `RESEND_FROM` | 推荐 | 发件人地址,需为 Resend 已验证域名下的邮箱 | `[email protected]` |
+
+<Callout type={'info'}>
+ 使用 Resend 前需先 [验证发件域名](https://resend.com/docs/dashboard/domains/introduction),否则只能发送到自己的邮箱。
+</Callout>
+
+## 邮箱验证
+
+启用邮箱验证以确保用户拥有其注册的邮箱地址(默认关闭):
+
+| 环境变量 | 类型 | 描述 |
+| ------------------------- | -- | -------------------- |
+| `AUTH_EMAIL_VERIFICATION` | 可选 | 设置为 `1` 以要求注册后进行邮箱验证 |
+
+<Callout type={'info'}>
+ 邮箱验证需要上方已配置好的邮件服务(SMTP 或 Resend)。启用后,用户必须验证其邮箱地址才能登录。
+</Callout>
+
+## 魔法链接(免密)登录
+
+启用魔法链接登录(依赖上方已配置好的邮件服务,默认关闭):
+
+| 环境变量 | 类型 | 描述 |
+| ------------------------ | -- | ----------------------- |
+| `AUTH_ENABLE_MAGIC_LINK` | 可选 | 设置为 `1` 以启用魔法链接登录(默认关闭) |
+
+<Callout type={'tip'}>
+ 前往 [环境变量](/zh/docs/self-hosting/environment-variables/auth#better-auth) 可查阅所有 Better Auth 相关变量详情。
+</Callout>
diff --git a/docs/self-hosting/advanced/auth/legacy.mdx b/docs/self-hosting/auth/legacy.mdx
similarity index 90%
rename from docs/self-hosting/advanced/auth/legacy.mdx
rename to docs/self-hosting/auth/legacy.mdx
index b039d720ba4..72130ce0fa1 100644
--- a/docs/self-hosting/advanced/auth/legacy.mdx
+++ b/docs/self-hosting/auth/legacy.mdx
@@ -22,9 +22,9 @@ This page documents the legacy authentication methods (NextAuth and Clerk) for u
Clerk is a comprehensive identity verification solution that provides a simple yet powerful API and services to handle user authentication and session management.
-LobeChat has deeply integrated with Clerk to provide users with a secure and convenient login and registration experience.
+LobeHub has deeply integrated with Clerk to provide users with a secure and convenient login and registration experience.
-By setting the environment variables `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` and `CLERK_SECRET_KEY` in LobeChat's environment, you can enable and use Clerk.
+By setting the environment variables `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` and `CLERK_SECRET_KEY` in LobeHub's environment, you can enable and use Clerk.
<Callout type={'info'}>
For detailed Clerk configuration, see [Clerk Configuration Guide](/docs/self-hosting/advanced/auth/clerk).
@@ -40,15 +40,15 @@ By setting the environment variables `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` and `CL
To migrate from NextAuth to Better Auth, see the [NextAuth Migration Guide](/docs/self-hosting/advanced/auth/nextauth-to-betterauth).
</Callout>
-Before using NextAuth, please set the following variables in LobeChat's environment variables:
+Before using NextAuth, please set the following variables in LobeHub's environment variables:
-| Environment Variable | Type | Description |
-| -------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| Environment Variable | Type | Description |
+| -------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `NEXT_PUBLIC_ENABLE_NEXT_AUTH` | Required | This is used to enable the NextAuth service. Set it to `1` to enable it; changing this setting requires recompiling the application. Users deploying with the `lobehub/lobehub` image have this configuration added by default. |
-| `AUTH_SECRET` | Required | The key used to encrypt Auth.js session tokens. You can use the following command: `openssl rand -base64 32`, or visit `https://generate-secret.vercel.app/32` to generate the key. |
-| `AUTH_URL` | Required | This URL specifies the callback address for Auth.js when performing OAuth verification. Set this only if the default generated redirect address is incorrect. `https://example.com/api/auth` |
-| `NEXT_AUTH_SSO_PROVIDERS` | Optional | This environment variable is used to enable multiple identity verification sources simultaneously, separated by commas, for example, `auth0,microsoft-entra-id,authentik`. |
-| `NEXT_AUTH_SSO_SESSION_STRATEGY` | Optional | The session strategy for Auth.js. Options are `jwt` or `database`. Default is `jwt`. |
+| `AUTH_SECRET` | Required | The key used to encrypt Auth.js session tokens. You can use the following command: `openssl rand -base64 32`, or visit `https://generate-secret.vercel.app/32` to generate the key. |
+| `AUTH_URL` | Required | This URL specifies the callback address for Auth.js when performing OAuth verification. Set this only if the default generated redirect address is incorrect. `https://example.com/api/auth` |
+| `NEXT_AUTH_SSO_PROVIDERS` | Optional | This environment variable is used to enable multiple identity verification sources simultaneously, separated by commas, for example, `auth0,microsoft-entra-id,authentik`. |
+| `NEXT_AUTH_SSO_SESSION_STRATEGY` | Optional | The session strategy for Auth.js. Options are `jwt` or `database`. Default is `jwt`. |
Currently supported identity verification services include:
@@ -103,7 +103,7 @@ The order corresponds to the display order of the SSO providers.
### Webhook Support
-Allow LobeChat to receive notifications when user information is updated in the identity provider. Supported providers include Casdoor and Logto. Please refer to the specific provider documentation for configuration details.
+Allow LobeHub to receive notifications when user information is updated in the identity provider. Supported providers include Casdoor and Logto. Please refer to the specific provider documentation for configuration details.
### Database Session
diff --git a/docs/self-hosting/advanced/auth/legacy.zh-CN.mdx b/docs/self-hosting/auth/legacy.zh-CN.mdx
similarity index 90%
rename from docs/self-hosting/advanced/auth/legacy.zh-CN.mdx
rename to docs/self-hosting/auth/legacy.zh-CN.mdx
index 63d3c3bbe46..dff5fae0622 100644
--- a/docs/self-hosting/advanced/auth/legacy.zh-CN.mdx
+++ b/docs/self-hosting/auth/legacy.zh-CN.mdx
@@ -20,9 +20,9 @@ tags:
Clerk 是一个全面的身份验证解决方案,它提供了简单而强大的 API 和服务来处理用户认证和会话管理。
-LobeChat 与 Clerk 做了深度集成,能够为用户提供安全、便捷的登录和注册体验。
+LobeHub 与 Clerk 做了深度集成,能够为用户提供安全、便捷的登录和注册体验。
-在 LobeChat 的环境变量中设置 `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` 和 `CLERK_SECRET_KEY`,即可开启和使用 Clerk。
+在 LobeHub 的环境变量中设置 `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY` 和 `CLERK_SECRET_KEY`,即可开启和使用 Clerk。
<Callout type={'info'}>
详细的 Clerk 配置请参阅 [Clerk 配置指南](/zh/docs/self-hosting/advanced/auth/clerk)。
@@ -38,11 +38,11 @@ LobeChat 与 Clerk 做了深度集成,能够为用户提供安全、便捷的
如需从 NextAuth 迁移到 Better Auth,请参阅 [NextAuth 迁移指南](/zh/docs/self-hosting/advanced/auth/nextauth-to-betterauth)。
</Callout>
-在使用 NextAuth 之前,请先在 LobeChat 的环境变量中设置以下变量:
+在使用 NextAuth 之前,请先在 LobeHub 的环境变量中设置以下变量:
| 环境变量 | 类型 | 描述 |
| -------------------------------- | -- | ------------------------------------------------------------------------------------------------------------ |
-| `NEXT_PUBLIC_ENABLE_NEXT_AUTH` | 必选 | 用于启用 NextAuth 服务,设置为 `1` 以启用,更改此项需要重新编译应用。使用 `lobehub/lobehub` 镜像部署的用户已经默认添加了该项配置。 |
+| `NEXT_PUBLIC_ENABLE_NEXT_AUTH` | 必选 | 用于启用 NextAuth 服务,设置为 `1` 以启用,更改此项需要重新编译应用。使用 `lobehub/lobehub` 镜像部署的用户已经默认添加了该项配置。 |
| `NEXT_AUTH_SECRET` | 必选 | 用于加密 Auth.js 会话令牌的密钥。您可以使用以下命令: `openssl rand -base64 32`,或者访问 `https://generate-secret.vercel.app/32` 生成秘钥。 |
| `AUTH_URL` | 必选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://example.com/api/auth` |
| `NEXT_AUTH_SSO_PROVIDERS` | 可选 | 该环境变量用于同时启用多个身份验证源,以逗号 `,` 分割,例如 `auth0,microsoft-entra-id,authentik`。 |
@@ -98,7 +98,7 @@ LobeChat 与 Clerk 做了深度集成,能够为用户提供安全、便捷的
### Webhook 支持
-允许 LobeChat 在身份提供商中用户信息更新时接收通知。支持的提供商包括 Casdoor 和 Logto。请参考具体提供商文档进行配置。
+允许 LobeHub 在身份提供商中用户信息更新时接收通知。支持的提供商包括 Casdoor 和 Logto。请参考具体提供商文档进行配置。
### 数据库会话
diff --git a/docs/self-hosting/advanced/auth/next-auth/auth0.mdx b/docs/self-hosting/auth/next-auth/auth0.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/next-auth/auth0.mdx
rename to docs/self-hosting/auth/next-auth/auth0.mdx
diff --git a/docs/self-hosting/advanced/auth/next-auth/auth0.zh-CN.mdx b/docs/self-hosting/auth/next-auth/auth0.zh-CN.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/next-auth/auth0.zh-CN.mdx
rename to docs/self-hosting/auth/next-auth/auth0.zh-CN.mdx
diff --git a/docs/self-hosting/advanced/auth/next-auth/authelia.mdx b/docs/self-hosting/auth/next-auth/authelia.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/next-auth/authelia.mdx
rename to docs/self-hosting/auth/next-auth/authelia.mdx
diff --git a/docs/self-hosting/advanced/auth/next-auth/authelia.zh-CN.mdx b/docs/self-hosting/auth/next-auth/authelia.zh-CN.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/next-auth/authelia.zh-CN.mdx
rename to docs/self-hosting/auth/next-auth/authelia.zh-CN.mdx
diff --git a/docs/self-hosting/advanced/auth/next-auth/authentik.mdx b/docs/self-hosting/auth/next-auth/authentik.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/next-auth/authentik.mdx
rename to docs/self-hosting/auth/next-auth/authentik.mdx
diff --git a/docs/self-hosting/advanced/auth/next-auth/authentik.zh-CN.mdx b/docs/self-hosting/auth/next-auth/authentik.zh-CN.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/next-auth/authentik.zh-CN.mdx
rename to docs/self-hosting/auth/next-auth/authentik.zh-CN.mdx
diff --git a/docs/self-hosting/advanced/auth/next-auth/casdoor.mdx b/docs/self-hosting/auth/next-auth/casdoor.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/next-auth/casdoor.mdx
rename to docs/self-hosting/auth/next-auth/casdoor.mdx
diff --git a/docs/self-hosting/advanced/auth/next-auth/casdoor.zh-CN.mdx b/docs/self-hosting/auth/next-auth/casdoor.zh-CN.mdx
similarity index 96%
rename from docs/self-hosting/advanced/auth/next-auth/casdoor.zh-CN.mdx
rename to docs/self-hosting/auth/next-auth/casdoor.zh-CN.mdx
index 226fc300338..c558df863b9 100644
--- a/docs/self-hosting/advanced/auth/next-auth/casdoor.zh-CN.mdx
+++ b/docs/self-hosting/auth/next-auth/casdoor.zh-CN.mdx
@@ -13,7 +13,7 @@ tags:
[Casdoor](https://github.com/casdoor/casdoor) 是一个开源的身份验证服务,功能配置丰富且易于上手。
<Callout type={'tip'}>
- 若你想要私有部署 Casdoor,我们建议你将之与 LobeHub 数据库版本一同使用 Docker Compose 部署,此时
+ 若你想要私有部署 Casdoor,我们建议你将之与 LobeHub 一同使用 Docker Compose 部署,此时
LobeHub 可以与之共用同一个 Postgres 实例。
</Callout>
@@ -21,12 +21,12 @@ tags:
若你使用局域网 IP 部署,下文假设:
-- 你的 LobeHub 数据库版本 IP / 端口为 `http://LobeHub_IP:3210`。
+- 你的 LobeHub IP / 端口为 `http://LobeHub_IP:3210`。
- 你私有部署 Casdoor,其域名为 `http://CASDOOR_IP:8000`。
若你使用公网部署,下文假设:
-- 你的 LobeHub 数据库版本域名为 `https://lobe.example.com`。
+- 你的 LobeHub 域名为 `https://lobe.example.com`。
- 你私有部署 Casdoor,其域名为 `https://lobe-auth-api.example.com`。
<Steps>
diff --git a/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.mdx b/docs/self-hosting/auth/next-auth/cloudflare-zero-trust.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.mdx
rename to docs/self-hosting/auth/next-auth/cloudflare-zero-trust.mdx
diff --git a/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.zh-CN.mdx b/docs/self-hosting/auth/next-auth/cloudflare-zero-trust.zh-CN.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.zh-CN.mdx
rename to docs/self-hosting/auth/next-auth/cloudflare-zero-trust.zh-CN.mdx
diff --git a/docs/self-hosting/advanced/auth/next-auth/github.mdx b/docs/self-hosting/auth/next-auth/github.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/next-auth/github.mdx
rename to docs/self-hosting/auth/next-auth/github.mdx
diff --git a/docs/self-hosting/advanced/auth/next-auth/github.zh-CN.mdx b/docs/self-hosting/auth/next-auth/github.zh-CN.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/next-auth/github.zh-CN.mdx
rename to docs/self-hosting/auth/next-auth/github.zh-CN.mdx
diff --git a/docs/self-hosting/advanced/auth/next-auth/google.mdx b/docs/self-hosting/auth/next-auth/google.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/next-auth/google.mdx
rename to docs/self-hosting/auth/next-auth/google.mdx
diff --git a/docs/self-hosting/advanced/auth/next-auth/google.zh-CN.mdx b/docs/self-hosting/auth/next-auth/google.zh-CN.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/next-auth/google.zh-CN.mdx
rename to docs/self-hosting/auth/next-auth/google.zh-CN.mdx
diff --git a/docs/self-hosting/advanced/auth/next-auth/keycloak.mdx b/docs/self-hosting/auth/next-auth/keycloak.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/next-auth/keycloak.mdx
rename to docs/self-hosting/auth/next-auth/keycloak.mdx
diff --git a/docs/self-hosting/advanced/auth/next-auth/keycloak.zh-CN.mdx b/docs/self-hosting/auth/next-auth/keycloak.zh-CN.mdx
similarity index 97%
rename from docs/self-hosting/advanced/auth/next-auth/keycloak.zh-CN.mdx
rename to docs/self-hosting/auth/next-auth/keycloak.zh-CN.mdx
index aff67fa99f7..0fd82118d39 100644
--- a/docs/self-hosting/advanced/auth/next-auth/keycloak.zh-CN.mdx
+++ b/docs/self-hosting/auth/next-auth/keycloak.zh-CN.mdx
@@ -21,12 +21,12 @@ tags:
若你使用局域网 IP 部署,下文假设:
-- 你的 LobeHub 数据库版本 IP / 端口为 `http://LobeHub_IP:3210`。
+- 你的 LobeHub IP / 端口为 `http://LobeHub_IP:3210`。
- 你私有部署 Keycloak,其域名为 `http://KEYCLOAK_IP:8080`。
若你使用公网部署,下文假设:
-- 你的 LobeHub 数据库版本域名为 `https://lobe.example.com`。
+- 你的 LobeHub 域名为 `https://lobe.example.com`。
- 你私有部署 Keycloak,其域名为 `https://lobe-auth-api.example.com`。
<Steps>
diff --git a/docs/self-hosting/advanced/auth/next-auth/logto.mdx b/docs/self-hosting/auth/next-auth/logto.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/next-auth/logto.mdx
rename to docs/self-hosting/auth/next-auth/logto.mdx
diff --git a/docs/self-hosting/advanced/auth/next-auth/logto.zh-CN.mdx b/docs/self-hosting/auth/next-auth/logto.zh-CN.mdx
similarity index 97%
rename from docs/self-hosting/advanced/auth/next-auth/logto.zh-CN.mdx
rename to docs/self-hosting/auth/next-auth/logto.zh-CN.mdx
index d3beccb193a..d8cd50f655c 100644
--- a/docs/self-hosting/advanced/auth/next-auth/logto.zh-CN.mdx
+++ b/docs/self-hosting/auth/next-auth/logto.zh-CN.mdx
@@ -13,13 +13,13 @@ tags:
[Logto](https://github.com/logto-io/logto) 是一个开源的身份验证服务,界面简洁美观、功能配置丰富且易于上手,你即可以选择使用其官方提供的 Logto Cloud,也可以选择私有部署 Logto。
<Callout type={'tip'}>
- 若你想要私有部署 Logto,我们建议你将之与 LobeHub 数据库版本一同使用 Docker Compose 部署,此时
+ 若你想要私有部署 Logto,我们建议你将之与 LobeHub 一同使用 Docker Compose 部署,此时
LobeHub 可以与之共用同一个 Postgres 实例。
</Callout>
## Logto 配置流程
-下文假设你的 LobeHub 数据库版本域名为 `https://lobe.example.com`。
+下文假设你的 LobeHub 域名为 `https://lobe.example.com`。
若你是私有部署的 Logto,假设其 endpoint 域名为 `https://lobe-auth-api.example.com`。
diff --git a/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.mdx b/docs/self-hosting/auth/next-auth/microsoft-entra-id.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.mdx
rename to docs/self-hosting/auth/next-auth/microsoft-entra-id.mdx
diff --git a/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.zh-CN.mdx b/docs/self-hosting/auth/next-auth/microsoft-entra-id.zh-CN.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.zh-CN.mdx
rename to docs/self-hosting/auth/next-auth/microsoft-entra-id.zh-CN.mdx
diff --git a/docs/self-hosting/advanced/auth/next-auth/okta.mdx b/docs/self-hosting/auth/next-auth/okta.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/next-auth/okta.mdx
rename to docs/self-hosting/auth/next-auth/okta.mdx
diff --git a/docs/self-hosting/advanced/auth/next-auth/okta.zh-CN.mdx b/docs/self-hosting/auth/next-auth/okta.zh-CN.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/next-auth/okta.zh-CN.mdx
rename to docs/self-hosting/auth/next-auth/okta.zh-CN.mdx
diff --git a/docs/self-hosting/advanced/auth/next-auth/wechat.mdx b/docs/self-hosting/auth/next-auth/wechat.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/next-auth/wechat.mdx
rename to docs/self-hosting/auth/next-auth/wechat.mdx
diff --git a/docs/self-hosting/advanced/auth/next-auth/wechat.zh-CN.mdx b/docs/self-hosting/auth/next-auth/wechat.zh-CN.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/next-auth/wechat.zh-CN.mdx
rename to docs/self-hosting/auth/next-auth/wechat.zh-CN.mdx
diff --git a/docs/self-hosting/advanced/auth/next-auth/zitadel.mdx b/docs/self-hosting/auth/next-auth/zitadel.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/next-auth/zitadel.mdx
rename to docs/self-hosting/auth/next-auth/zitadel.mdx
diff --git a/docs/self-hosting/advanced/auth/next-auth/zitadel.zh-CN.mdx b/docs/self-hosting/auth/next-auth/zitadel.zh-CN.mdx
similarity index 100%
rename from docs/self-hosting/advanced/auth/next-auth/zitadel.zh-CN.mdx
rename to docs/self-hosting/auth/next-auth/zitadel.zh-CN.mdx
diff --git a/docs/self-hosting/advanced/auth/providers/apple.mdx b/docs/self-hosting/auth/providers/apple.mdx
similarity index 94%
rename from docs/self-hosting/advanced/auth/providers/apple.mdx
rename to docs/self-hosting/auth/providers/apple.mdx
index 9c603906a29..bec36fd53ea 100644
--- a/docs/self-hosting/advanced/auth/providers/apple.mdx
+++ b/docs/self-hosting/auth/providers/apple.mdx
@@ -1,12 +1,12 @@
---
-title: Configuring Apple Authentication for LobeChat
+title: Configuring Apple Authentication for LobeHub
description: >-
- Learn how to configure Apple Sign In for LobeChat, including creating
+ Learn how to configure Apple Sign In for LobeHub, including creating
credentials in Apple Developer Portal and setting up environment variables.
tags:
- Apple
- Authentication
- - LobeChat
+ - LobeHub
- Single Sign-On
---
@@ -26,7 +26,7 @@ tags:
3. Click **+** to register a new identifier
4. Select **App IDs** > **App** type > **Continue**
5. Fill in:
- - **Description**: e.g., `LobeChat`
+ - **Description**: e.g., `LobeHub`
- **Bundle ID**: e.g., `com.yourcompany.lobechat`
6. Enable **Sign In with Apple** capability
7. Click **Continue** > **Register**
@@ -36,7 +36,7 @@ tags:
1. Go back to **Identifiers**, click **+**
2. Select **Services IDs** > **Continue**
3. Fill in:
- - **Description**: e.g., `LobeChat Web`
+ - **Description**: e.g., `LobeHub Web`
- **Identifier**: e.g., `com.yourcompany.lobechat.web` (this is your Client ID)
4. Click **Continue** > **Register**
@@ -113,7 +113,7 @@ tags:
<Callout type={'info'}>
After successful deployment, users will be able to authenticate with Apple and
- use LobeChat.
+ use LobeHub.
</Callout>
## Common Issues
diff --git a/docs/self-hosting/advanced/auth/providers/apple.zh-CN.mdx b/docs/self-hosting/auth/providers/apple.zh-CN.mdx
similarity index 93%
rename from docs/self-hosting/advanced/auth/providers/apple.zh-CN.mdx
rename to docs/self-hosting/auth/providers/apple.zh-CN.mdx
index ad0d49ab8ea..9eadfa48208 100644
--- a/docs/self-hosting/advanced/auth/providers/apple.zh-CN.mdx
+++ b/docs/self-hosting/auth/providers/apple.zh-CN.mdx
@@ -1,10 +1,10 @@
---
-title: 在 LobeChat 中配置 Apple 身份验证
-description: 学习如何在 LobeChat 中配置 Apple 登录,包括在 Apple Developer Portal 创建凭证和设置环境变量。
+title: 在 LobeHub 中配置 Apple 身份验证
+description: 学习如何在 LobeHub 中配置 Apple 登录,包括在 Apple Developer Portal 创建凭证和设置环境变量。
tags:
- Apple
- 身份验证
- - LobeChat
+ - LobeHub
- 单点登录
---
@@ -23,7 +23,7 @@ tags:
3. 点击 **+** 注册新标识符
4. 选择 **App IDs** > **App** 类型 > **Continue**
5. 填写:
- - **Description**: 如 `LobeChat`
+ - **Description**: 如 `LobeHub`
- **Bundle ID**: 如 `com.yourcompany.lobechat`
6. 启用 **Sign In with Apple** 功能
7. 点击 **Continue** > **Register**
@@ -33,7 +33,7 @@ tags:
1. 返回 **Identifiers**,点击 **+**
2. 选择 **Services IDs** > **Continue**
3. 填写:
- - **Description**: 如 `LobeChat Web`
+ - **Description**: 如 `LobeHub Web`
- **Identifier**: 如 `com.yourcompany.lobechat.web`(这是你的 Client ID)
4. 点击 **Continue** > **Register**
@@ -108,7 +108,7 @@ tags:
</Steps>
<Callout type={'info'}>
- 部署成功后,用户将可以通过 Apple 身份认证并使用 LobeChat。
+ 部署成功后,用户将可以通过 Apple 身份认证并使用 LobeHub。
</Callout>
## 常见问题
diff --git a/docs/self-hosting/advanced/auth/providers/auth0.mdx b/docs/self-hosting/auth/providers/auth0.mdx
similarity index 75%
rename from docs/self-hosting/advanced/auth/providers/auth0.mdx
rename to docs/self-hosting/auth/providers/auth0.mdx
index 757619cefd0..49caeaf3d4a 100644
--- a/docs/self-hosting/advanced/auth/providers/auth0.mdx
+++ b/docs/self-hosting/auth/providers/auth0.mdx
@@ -1,12 +1,12 @@
---
-title: Configuring Auth0 Authentication for LobeChat
+title: Configuring Auth0 Authentication for LobeHub
description: >-
- Learn how to configure Auth0 SSO for LobeChat, including creating
+ Learn how to configure Auth0 SSO for LobeHub, including creating
applications, adding users, and setting up environment variables.
tags:
- Auth0
- Authentication
- - LobeChat
+ - LobeHub
- Single Sign-On
---
@@ -59,13 +59,13 @@ tags:
### Configure Environment Variables
- | Environment Variable | Type | Description |
- | -------------------------------- | -------- | --------------------------------------------------------------- |
- | `AUTH_SECRET` | Required | Session encryption key, generate with `openssl rand -base64 32` |
- | `AUTH_SSO_PROVIDERS` | Required | Set to `auth0` |
- | `AUTH_AUTH0_ID` | Required | Client ID |
- | `AUTH_AUTH0_SECRET` | Required | Client Secret |
- | `AUTH_AUTH0_ISSUER` | Required | `https://your-tenant.auth0.com` |
+ | Environment Variable | Type | Description |
+ | -------------------- | -------- | --------------------------------------------------------------- |
+ | `AUTH_SECRET` | Required | Session encryption key, generate with `openssl rand -base64 32` |
+ | `AUTH_SSO_PROVIDERS` | Required | Set to `auth0` |
+ | `AUTH_AUTH0_ID` | Required | Client ID |
+ | `AUTH_AUTH0_SECRET` | Required | Client Secret |
+ | `AUTH_AUTH0_ISSUER` | Required | `https://your-tenant.auth0.com` |
<Callout type={'tip'}>
Go to [📘 Environment Variables](/docs/self-hosting/environment-variables/auth#auth0)
@@ -75,7 +75,7 @@ tags:
<Callout type={'info'}>
After successful deployment, users will be able to authenticate with Auth0 and
- use LobeChat.
+ use LobeHub.
</Callout>
## Advanced Configuration
@@ -100,7 +100,7 @@ Configure social login in **Authentication** > **Social**.
</Callout>
<Callout type={'warning'}>
- When creating a GitHub connection, make sure to enable the **Email Address** permission in the **Attributes** section. LobeChat requires user email for authentication.
+ When creating a GitHub connection, make sure to enable the **Email Address** permission in the **Attributes** section. LobeHub requires user email for authentication.
<Image alt="GitHub Connection Email Permission" src="https://hub-apac-1.lobeobjects.space/docs/afdf22891dda3e5e44c690db184c548e.png" />
</Callout>
diff --git a/docs/self-hosting/advanced/auth/providers/auth0.zh-CN.mdx b/docs/self-hosting/auth/providers/auth0.zh-CN.mdx
similarity index 77%
rename from docs/self-hosting/advanced/auth/providers/auth0.zh-CN.mdx
rename to docs/self-hosting/auth/providers/auth0.zh-CN.mdx
index 360bb01a5ad..b2d436508a6 100644
--- a/docs/self-hosting/advanced/auth/providers/auth0.zh-CN.mdx
+++ b/docs/self-hosting/auth/providers/auth0.zh-CN.mdx
@@ -1,10 +1,10 @@
---
-title: 在 LobeChat 中配置 Auth0 身份验证
-description: 学习如何在 LobeChat 中配置 Auth0 SSO,包括创建应用、添加用户和设置环境变量。
+title: 在 LobeHub 中配置 Auth0 身份验证
+description: 学习如何在 LobeHub 中配置 Auth0 SSO,包括创建应用、添加用户和设置环境变量。
tags:
- Auth0
- 身份验证
- - LobeChat
+ - LobeHub
- 单点登录
---
@@ -57,13 +57,13 @@ tags:
### 配置环境变量
- | 环境变量 | 类型 | 描述 |
- | -------------------------------- | -- | -------------------------------------- |
- | `AUTH_SECRET` | 必选 | 会话加密密钥,使用 `openssl rand -base64 32` 生成 |
- | `AUTH_SSO_PROVIDERS` | 必选 | 填写 `auth0` |
- | `AUTH_AUTH0_ID` | 必选 | Client ID |
- | `AUTH_AUTH0_SECRET` | 必选 | Client Secret |
- | `AUTH_AUTH0_ISSUER` | 必选 | `https://your-tenant.auth0.com` |
+ | 环境变量 | 类型 | 描述 |
+ | -------------------- | -- | -------------------------------------- |
+ | `AUTH_SECRET` | 必选 | 会话加密密钥,使用 `openssl rand -base64 32` 生成 |
+ | `AUTH_SSO_PROVIDERS` | 必选 | 填写 `auth0` |
+ | `AUTH_AUTH0_ID` | 必选 | Client ID |
+ | `AUTH_AUTH0_SECRET` | 必选 | Client Secret |
+ | `AUTH_AUTH0_ISSUER` | 必选 | `https://your-tenant.auth0.com` |
<Callout type={'tip'}>
前往 [📘 环境变量](/zh/docs/self-hosting/environment-variables/auth#auth0)
@@ -72,7 +72,7 @@ tags:
</Steps>
<Callout type={'info'}>
- 部署成功后,用户将可以通过 Auth0 身份认证并使用 LobeChat。
+ 部署成功后,用户将可以通过 Auth0 身份认证并使用 LobeHub。
</Callout>
## 高级配置
@@ -96,7 +96,7 @@ Auth0 支持 Azure AD、Slack、Google Workspace、Office 365、Zoom 等。详
</Callout>
<Callout type={'warning'}>
- 创建 GitHub 连接时,务必在 **Attributes** 部分勾选 **Email Address** 权限。LobeChat 需要用户邮箱进行身份认证。
+ 创建 GitHub 连接时,务必在 **Attributes** 部分勾选 **Email Address** 权限。LobeHub 需要用户邮箱进行身份认证。
<Image alt="GitHub 连接邮箱权限" src="https://hub-apac-1.lobeobjects.space/docs/afdf22891dda3e5e44c690db184c548e.png" />
</Callout>
diff --git a/docs/self-hosting/advanced/auth/providers/authelia.mdx b/docs/self-hosting/auth/providers/authelia.mdx
similarity index 53%
rename from docs/self-hosting/advanced/auth/providers/authelia.mdx
rename to docs/self-hosting/auth/providers/authelia.mdx
index e16bc30ea04..867d0395288 100644
--- a/docs/self-hosting/advanced/auth/providers/authelia.mdx
+++ b/docs/self-hosting/auth/providers/authelia.mdx
@@ -1,12 +1,12 @@
---
-title: Configuring Authelia Authentication for LobeChat
+title: Configuring Authelia Authentication for LobeHub
description: >-
- Learn how to configure Authelia SSO for LobeChat, including setting up OIDC
+ Learn how to configure Authelia SSO for LobeHub, including setting up OIDC
client and environment variables.
tags:
- Authelia
- Authentication
- - LobeChat
+ - LobeHub
- Single Sign-On
- OIDC
---
@@ -25,7 +25,7 @@ tags:
oidc:
clients:
- client_id: 'lobechat'
- client_name: 'LobeChat'
+ client_name: 'LobeHub'
client_secret: 'your-client-secret'
redirect_uris:
- 'https://your-domain.com/api/auth/callback/authelia'
@@ -41,15 +41,15 @@ tags:
### Configure Environment Variables
- When deploying LobeChat, you need to configure the following environment variables:
+ When deploying LobeHub, you need to configure the following environment variables:
- | Environment Variable | Type | Description |
- | -------------------------------- | -------- | ----------------------------------------------------------------------------- |
- | `AUTH_SECRET` | Required | Key used to encrypt session tokens. Generate using: `openssl rand -base64 32` |
- | `AUTH_SSO_PROVIDERS` | Required | SSO provider for LobeChat. Use `authelia` for Authelia |
- | `AUTH_AUTHELIA_ID` | Required | Client ID configured in Authelia |
- | `AUTH_AUTHELIA_SECRET` | Required | Client Secret configured in Authelia |
- | `AUTH_AUTHELIA_ISSUER` | Required | Authelia issuer URL (e.g., `https://auth.your-domain.com`) |
+ | Environment Variable | Type | Description |
+ | ---------------------- | -------- | ----------------------------------------------------------------------------- |
+ | `AUTH_SECRET` | Required | Key used to encrypt session tokens. Generate using: `openssl rand -base64 32` |
+ | `AUTH_SSO_PROVIDERS` | Required | SSO provider for LobeHub. Use `authelia` for Authelia |
+ | `AUTH_AUTHELIA_ID` | Required | Client ID configured in Authelia |
+ | `AUTH_AUTHELIA_SECRET` | Required | Client Secret configured in Authelia |
+ | `AUTH_AUTHELIA_ISSUER` | Required | Authelia issuer URL (e.g., `https://auth.your-domain.com`) |
<Callout type={'tip'}>
Go to [📘 Environment Variables](/docs/self-hosting/environment-variables/auth#authelia) for detailed information on these variables.
@@ -57,7 +57,7 @@ tags:
</Steps>
<Callout type={'info'}>
- After successful deployment, users will be able to authenticate with Authelia and use LobeChat.
+ After successful deployment, users will be able to authenticate with Authelia and use LobeHub.
</Callout>
## Related Resources
diff --git a/docs/self-hosting/advanced/auth/providers/authelia.zh-CN.mdx b/docs/self-hosting/auth/providers/authelia.zh-CN.mdx
similarity index 51%
rename from docs/self-hosting/advanced/auth/providers/authelia.zh-CN.mdx
rename to docs/self-hosting/auth/providers/authelia.zh-CN.mdx
index abc989c5475..11adaf93cfb 100644
--- a/docs/self-hosting/advanced/auth/providers/authelia.zh-CN.mdx
+++ b/docs/self-hosting/auth/providers/authelia.zh-CN.mdx
@@ -1,10 +1,10 @@
---
-title: 在 LobeChat 中配置 Authelia 身份验证
-description: 学习如何在 LobeChat 中配置 Authelia SSO,包括设置 OIDC 客户端和环境变量。
+title: 在 LobeHub 中配置 Authelia 身份验证
+description: 学习如何在 LobeHub 中配置 Authelia SSO,包括设置 OIDC 客户端和环境变量。
tags:
- Authelia
- 身份验证
- - LobeChat
+ - LobeHub
- 单点登录
- OIDC
---
@@ -23,7 +23,7 @@ tags:
oidc:
clients:
- client_id: 'lobechat'
- client_name: 'LobeChat'
+ client_name: 'LobeHub'
client_secret: 'your-client-secret'
redirect_uris:
- 'https://your-domain.com/api/auth/callback/authelia'
@@ -39,22 +39,22 @@ tags:
### 配置环境变量
- 在部署 LobeChat 时,你需要配置以下环境变量:
+ 在部署 LobeHub 时,你需要配置以下环境变量:
- | 环境变量 | 类型 | 描述 |
- | -------------------------------- | -- | ------------------------------------------------------ |
- | `AUTH_SECRET` | 必选 | 用于加密会话令牌的密钥。使用以下命令生成:`openssl rand -base64 32` |
- | `AUTH_SSO_PROVIDERS` | 必选 | SSO 提供商。使用 Authelia 请填写 `authelia` |
- | `AUTH_AUTHELIA_ID` | 必选 | Authelia 中配置的 Client ID |
- | `AUTH_AUTHELIA_SECRET` | 必选 | Authelia 中配置的 Client Secret |
- | `AUTH_AUTHELIA_ISSUER` | 必选 | Authelia Issuer URL(例如 `https://auth.your-domain.com`) |
+ | 环境变量 | 类型 | 描述 |
+ | ---------------------- | -- | ------------------------------------------------------ |
+ | `AUTH_SECRET` | 必选 | 用于加密会话令牌的密钥。使用以下命令生成:`openssl rand -base64 32` |
+ | `AUTH_SSO_PROVIDERS` | 必选 | SSO 提供商。使用 Authelia 请填写 `authelia` |
+ | `AUTH_AUTHELIA_ID` | 必选 | Authelia 中配置的 Client ID |
+ | `AUTH_AUTHELIA_SECRET` | 必选 | Authelia 中配置的 Client Secret |
+ | `AUTH_AUTHELIA_ISSUER` | 必选 | Authelia Issuer URL(例如 `https://auth.your-domain.com`) |
<Callout type={'tip'}>
前往 [📘 环境变量](/zh/docs/self-hosting/environment-variables/auth#authelia) 可查阅相关变量详情。
</Callout>
</Steps>
-<Callout type={'info'}>部署成功后,用户将可以通过 Authelia 身份认证并使用 LobeChat。</Callout>
+<Callout type={'info'}>部署成功后,用户将可以通过 Authelia 身份认证并使用 LobeHub。</Callout>
## 相关资源
diff --git a/docs/self-hosting/advanced/auth/providers/authentik.mdx b/docs/self-hosting/auth/providers/authentik.mdx
similarity index 56%
rename from docs/self-hosting/advanced/auth/providers/authentik.mdx
rename to docs/self-hosting/auth/providers/authentik.mdx
index 579010cbd04..7085290a714 100644
--- a/docs/self-hosting/advanced/auth/providers/authentik.mdx
+++ b/docs/self-hosting/auth/providers/authentik.mdx
@@ -1,12 +1,12 @@
---
-title: Configuring Authentik Authentication for LobeChat
+title: Configuring Authentik Authentication for LobeHub
description: >-
- Learn how to configure Authentik SSO for LobeChat, including creating an
+ Learn how to configure Authentik SSO for LobeHub, including creating an
OAuth2 provider and application.
tags:
- Authentik
- Authentication
- - LobeChat
+ - LobeHub
- Single Sign-On
- OIDC
---
@@ -21,7 +21,7 @@ tags:
1. In Authentik admin interface, go to **Applications** > **Providers**
2. Click **Create** and select **OAuth2/OpenID Provider**
3. Configure the provider:
- - Name: `LobeChat`
+ - Name: `LobeHub`
- Authorization flow: Select your authorization flow
- Client type: `Confidential`
- Redirect URIs: Add your callback URL
@@ -42,15 +42,15 @@ tags:
### Configure Environment Variables
- When deploying LobeChat, you need to configure the following environment variables:
+ When deploying LobeHub, you need to configure the following environment variables:
- | Environment Variable | Type | Description |
- | -------------------------------- | -------- | ----------------------------------------------------------------------------- |
- | `AUTH_SECRET` | Required | Key used to encrypt session tokens. Generate using: `openssl rand -base64 32` |
- | `AUTH_SSO_PROVIDERS` | Required | SSO provider for LobeChat. Use `authentik` for Authentik |
- | `AUTH_AUTHENTIK_ID` | Required | Client ID from Authentik provider |
- | `AUTH_AUTHENTIK_SECRET` | Required | Client Secret from Authentik provider |
- | `AUTH_AUTHENTIK_ISSUER` | Required | Authentik issuer URL |
+ | Environment Variable | Type | Description |
+ | ----------------------- | -------- | ----------------------------------------------------------------------------- |
+ | `AUTH_SECRET` | Required | Key used to encrypt session tokens. Generate using: `openssl rand -base64 32` |
+ | `AUTH_SSO_PROVIDERS` | Required | SSO provider for LobeHub. Use `authentik` for Authentik |
+ | `AUTH_AUTHENTIK_ID` | Required | Client ID from Authentik provider |
+ | `AUTH_AUTHENTIK_SECRET` | Required | Client Secret from Authentik provider |
+ | `AUTH_AUTHENTIK_ISSUER` | Required | Authentik issuer URL |
<Callout type={'tip'}>
Go to [📘 Environment Variables](/docs/self-hosting/environment-variables/auth#authentik) for detailed information on these variables.
@@ -58,7 +58,7 @@ tags:
</Steps>
<Callout type={'info'}>
- After successful deployment, users will be able to authenticate with Authentik and use LobeChat.
+ After successful deployment, users will be able to authenticate with Authentik and use LobeHub.
</Callout>
## Related Resources
diff --git a/docs/self-hosting/advanced/auth/providers/authentik.zh-CN.mdx b/docs/self-hosting/auth/providers/authentik.zh-CN.mdx
similarity index 56%
rename from docs/self-hosting/advanced/auth/providers/authentik.zh-CN.mdx
rename to docs/self-hosting/auth/providers/authentik.zh-CN.mdx
index 33814b11cda..fb4c0912b98 100644
--- a/docs/self-hosting/advanced/auth/providers/authentik.zh-CN.mdx
+++ b/docs/self-hosting/auth/providers/authentik.zh-CN.mdx
@@ -1,10 +1,10 @@
---
-title: 在 LobeChat 中配置 Authentik 身份验证
-description: 学习如何在 LobeChat 中配置 Authentik SSO,包括创建 OAuth2 提供商和应用。
+title: 在 LobeHub 中配置 Authentik 身份验证
+description: 学习如何在 LobeHub 中配置 Authentik SSO,包括创建 OAuth2 提供商和应用。
tags:
- Authentik
- 身份验证
- - LobeChat
+ - LobeHub
- 单点登录
- OIDC
---
@@ -19,7 +19,7 @@ tags:
1. 在 Authentik 管理界面,前往 **Applications** > **Providers**
2. 点击 **Create**,选择 **OAuth2/OpenID Provider**
3. 配置提供商:
- - Name: `LobeChat`
+ - Name: `LobeHub`
- Authorization flow: 选择授权流程
- Client type: `Confidential`
- Redirect URIs: 添加回调 URL
@@ -40,22 +40,22 @@ tags:
### 配置环境变量
- 在部署 LobeChat 时,你需要配置以下环境变量:
+ 在部署 LobeHub 时,你需要配置以下环境变量:
- | 环境变量 | 类型 | 描述 |
- | -------------------------------- | -- | ---------------------------------------------- |
- | `AUTH_SECRET` | 必选 | 用于加密会话令牌的密钥。使用以下命令生成:`openssl rand -base64 32` |
- | `AUTH_SSO_PROVIDERS` | 必选 | SSO 提供商。使用 Authentik 请填写 `authentik` |
- | `AUTH_AUTHENTIK_ID` | 必选 | Authentik 提供商的 Client ID |
- | `AUTH_AUTHENTIK_SECRET` | 必选 | Authentik 提供商的 Client Secret |
- | `AUTH_AUTHENTIK_ISSUER` | 必选 | Authentik Issuer URL |
+ | 环境变量 | 类型 | 描述 |
+ | ----------------------- | -- | ---------------------------------------------- |
+ | `AUTH_SECRET` | 必选 | 用于加密会话令牌的密钥。使用以下命令生成:`openssl rand -base64 32` |
+ | `AUTH_SSO_PROVIDERS` | 必选 | SSO 提供商。使用 Authentik 请填写 `authentik` |
+ | `AUTH_AUTHENTIK_ID` | 必选 | Authentik 提供商的 Client ID |
+ | `AUTH_AUTHENTIK_SECRET` | 必选 | Authentik 提供商的 Client Secret |
+ | `AUTH_AUTHENTIK_ISSUER` | 必选 | Authentik Issuer URL |
<Callout type={'tip'}>
前往 [📘 环境变量](/zh/docs/self-hosting/environment-variables/auth#authentik) 可查阅相关变量详情。
</Callout>
</Steps>
-<Callout type={'info'}>部署成功后,用户将可以通过 Authentik 身份认证并使用 LobeChat。</Callout>
+<Callout type={'info'}>部署成功后,用户将可以通过 Authentik 身份认证并使用 LobeHub。</Callout>
## 相关资源
diff --git a/docs/self-hosting/advanced/auth/providers/casdoor.mdx b/docs/self-hosting/auth/providers/casdoor.mdx
similarity index 94%
rename from docs/self-hosting/advanced/auth/providers/casdoor.mdx
rename to docs/self-hosting/auth/providers/casdoor.mdx
index 7e70b2299e0..4c702a71d26 100644
--- a/docs/self-hosting/advanced/auth/providers/casdoor.mdx
+++ b/docs/self-hosting/auth/providers/casdoor.mdx
@@ -1,12 +1,12 @@
---
-title: Configuring Casdoor Authentication for LobeChat
+title: Configuring Casdoor Authentication for LobeHub
description: >-
- Learn how to configure Casdoor SSO for LobeChat, including creating an
+ Learn how to configure Casdoor SSO for LobeHub, including creating an
application and setting up environment variables.
tags:
- Casdoor
- Authentication
- - LobeChat
+ - LobeHub
- Single Sign-On
- OIDC
---
@@ -21,7 +21,7 @@ tags:
1. Log in to your Casdoor admin console
2. Go to **Applications** and click **Add**
3. Configure the application:
- - Name: `LobeChat`
+ - Name: `LobeHub`
- Organization: Select your organization
- Redirect URLs: Add your callback URL
@@ -37,12 +37,12 @@ tags:
### Configure Environment Variables
- When deploying LobeChat, you need to configure the following environment variables:
+ When deploying LobeHub, you need to configure the following environment variables:
| Environment Variable | Type | Description |
| ------------------------ | -------- | ----------------------------------------------------------------------------- |
| `AUTH_SECRET` | Required | Key used to encrypt session tokens. Generate using: `openssl rand -base64 32` |
- | `AUTH_SSO_PROVIDERS` | Required | SSO provider for LobeChat. Use `casdoor` for Casdoor |
+ | `AUTH_SSO_PROVIDERS` | Required | SSO provider for LobeHub. Use `casdoor` for Casdoor |
| `AUTH_CASDOOR_ID` | Required | Client ID from Casdoor application |
| `AUTH_CASDOOR_SECRET` | Required | Client Secret from Casdoor application |
| `AUTH_CASDOOR_ISSUER` | Required | Casdoor server URL (e.g., `https://your-casdoor-domain`) |
@@ -56,7 +56,7 @@ tags:
> Available in Casdoor `>=1.843.0`.
- Configure Casdoor [Webhook](https://www.casdoor.org/docs/webhooks/overview#setting-up-a-webhook) to sync user data updates to LobeChat.
+ Configure Casdoor [Webhook](https://www.casdoor.org/docs/webhooks/overview#setting-up-a-webhook) to sync user data updates to LobeHub.
**Synced data fields**:
@@ -78,7 +78,7 @@ tags:
</Steps>
<Callout type={'info'}>
- After successful deployment, users will be able to authenticate with Casdoor and use LobeChat.
+ After successful deployment, users will be able to authenticate with Casdoor and use LobeHub.
</Callout>
## Docker Compose Deployment with Casdoor
diff --git a/docs/self-hosting/advanced/auth/providers/casdoor.zh-CN.mdx b/docs/self-hosting/auth/providers/casdoor.zh-CN.mdx
similarity index 96%
rename from docs/self-hosting/advanced/auth/providers/casdoor.zh-CN.mdx
rename to docs/self-hosting/auth/providers/casdoor.zh-CN.mdx
index 3d856f4bc27..123f0e4468f 100644
--- a/docs/self-hosting/advanced/auth/providers/casdoor.zh-CN.mdx
+++ b/docs/self-hosting/auth/providers/casdoor.zh-CN.mdx
@@ -1,10 +1,10 @@
---
-title: 在 LobeChat 中配置 Casdoor 身份验证
-description: 学习如何在 LobeChat 中配置 Casdoor SSO,包括创建应用和设置环境变量。
+title: 在 LobeHub 中配置 Casdoor 身份验证
+description: 学习如何在 LobeHub 中配置 Casdoor SSO,包括创建应用和设置环境变量。
tags:
- Casdoor
- 身份验证
- - LobeChat
+ - LobeHub
- 单点登录
- OIDC
---
@@ -19,7 +19,7 @@ tags:
1. 登录 Casdoor 管理控制台
2. 前往 **Applications**,点击 **Add**
3. 配置应用:
- - Name: `LobeChat`
+ - Name: `LobeHub`
- Organization: 选择你的组织
- Redirect URLs: 添加回调 URL
@@ -35,7 +35,7 @@ tags:
### 配置环境变量
- 在部署 LobeChat 时,你需要配置以下环境变量:
+ 在部署 LobeHub 时,你需要配置以下环境变量:
| 环境变量 | 类型 | 描述 |
| ------------------------ | -- | ------------------------------------------------- |
@@ -54,7 +54,7 @@ tags:
> 在 Casdoor `>=1.843.0` 上可用。
- 配置 Casdoor 的 [Webhook](https://www.casdoor.org/docs/webhooks/overview#setting-up-a-webhook) 以便在用户信息更新时同步到 LobeChat。
+ 配置 Casdoor 的 [Webhook](https://www.casdoor.org/docs/webhooks/overview#setting-up-a-webhook) 以便在用户信息更新时同步到 LobeHub。
**同步的数据字段**:
@@ -75,7 +75,7 @@ tags:
4. 将密钥填写到环境变量 `CASDOOR_WEBHOOK_SECRET`
</Steps>
-<Callout type={'info'}>部署成功后,用户将可以通过 Casdoor 身份认证并使用 LobeChat。</Callout>
+<Callout type={'info'}>部署成功后,用户将可以通过 Casdoor 身份认证并使用 LobeHub。</Callout>
## Docker Compose 部署 Casdoor
diff --git a/docs/self-hosting/advanced/auth/providers/cloudflare-zero-trust.mdx b/docs/self-hosting/auth/providers/cloudflare-zero-trust.mdx
similarity index 87%
rename from docs/self-hosting/advanced/auth/providers/cloudflare-zero-trust.mdx
rename to docs/self-hosting/auth/providers/cloudflare-zero-trust.mdx
index 2d19ecf374c..b894fb84161 100644
--- a/docs/self-hosting/advanced/auth/providers/cloudflare-zero-trust.mdx
+++ b/docs/self-hosting/auth/providers/cloudflare-zero-trust.mdx
@@ -1,12 +1,12 @@
---
-title: Configuring Cloudflare Zero Trust Authentication for LobeChat
+title: Configuring Cloudflare Zero Trust Authentication for LobeHub
description: >-
- Learn how to configure Cloudflare Zero Trust SSO for LobeChat, including
+ Learn how to configure Cloudflare Zero Trust SSO for LobeHub, including
creating an Access application.
tags:
- Cloudflare Zero Trust
- Authentication
- - LobeChat
+ - LobeHub
- Single Sign-On
- OIDC
---
@@ -22,7 +22,7 @@ tags:
2. Go to **Access** > **Applications**
3. Click **Add an application** and select **SaaS**
4. Configure the application:
- - Application name: `LobeChat`
+ - Application name: `LobeHub`
- Select OIDC as the authentication protocol
- Add the callback URL in redirect URIs
@@ -34,12 +34,12 @@ tags:
### Configure Environment Variables
- When deploying LobeChat, you need to configure the following environment variables:
+ When deploying LobeHub, you need to configure the following environment variables:
| Environment Variable | Type | Description |
| ----------------------------------- | -------- | ----------------------------------------------------------------------------- |
| `AUTH_SECRET` | Required | Key used to encrypt session tokens. Generate using: `openssl rand -base64 32` |
- | `AUTH_SSO_PROVIDERS` | Required | SSO provider for LobeChat. Use `cloudflare-zero-trust` |
+ | `AUTH_SSO_PROVIDERS` | Required | SSO provider for LobeHub. Use `cloudflare-zero-trust` |
| `AUTH_CLOUDFLARE_ZERO_TRUST_ID` | Required | Client ID from Cloudflare Access |
| `AUTH_CLOUDFLARE_ZERO_TRUST_SECRET` | Required | Client Secret from Cloudflare Access |
| `AUTH_CLOUDFLARE_ZERO_TRUST_ISSUER` | Required | Issuer URL (e.g., `https://your-team.cloudflareaccess.com`) |
@@ -50,7 +50,7 @@ tags:
</Steps>
<Callout type={'info'}>
- After successful deployment, users will be able to authenticate with Cloudflare Zero Trust and use LobeChat.
+ After successful deployment, users will be able to authenticate with Cloudflare Zero Trust and use LobeHub.
</Callout>
## Related Resources
diff --git a/docs/self-hosting/advanced/auth/providers/cloudflare-zero-trust.zh-CN.mdx b/docs/self-hosting/auth/providers/cloudflare-zero-trust.zh-CN.mdx
similarity index 85%
rename from docs/self-hosting/advanced/auth/providers/cloudflare-zero-trust.zh-CN.mdx
rename to docs/self-hosting/auth/providers/cloudflare-zero-trust.zh-CN.mdx
index f9609734eba..8fabf3c4a68 100644
--- a/docs/self-hosting/advanced/auth/providers/cloudflare-zero-trust.zh-CN.mdx
+++ b/docs/self-hosting/auth/providers/cloudflare-zero-trust.zh-CN.mdx
@@ -1,10 +1,10 @@
---
-title: 在 LobeChat 中配置 Cloudflare Zero Trust 身份验证
-description: 学习如何在 LobeChat 中配置 Cloudflare Zero Trust SSO,包括创建 Access 应用。
+title: 在 LobeHub 中配置 Cloudflare Zero Trust 身份验证
+description: 学习如何在 LobeHub 中配置 Cloudflare Zero Trust SSO,包括创建 Access 应用。
tags:
- Cloudflare Zero Trust
- 身份验证
- - LobeChat
+ - LobeHub
- 单点登录
- OIDC
---
@@ -20,7 +20,7 @@ tags:
2. 前往 **Access** > **Applications**
3. 点击 **Add an application**,选择 **SaaS**
4. 配置应用:
- - Application name: `LobeChat`
+ - Application name: `LobeHub`
- 选择 OIDC 作为认证协议
- 在 redirect URIs 中添加回调 URL
@@ -32,7 +32,7 @@ tags:
### 配置环境变量
- 在部署 LobeChat 时,你需要配置以下环境变量:
+ 在部署 LobeHub 时,你需要配置以下环境变量:
| 环境变量 | 类型 | 描述 |
| ----------------------------------- | -- | ------------------------------------------------------- |
@@ -47,7 +47,7 @@ tags:
</Callout>
</Steps>
-<Callout type={'info'}>部署成功后,用户将可以通过 Cloudflare Zero Trust 身份认证并使用 LobeChat。</Callout>
+<Callout type={'info'}>部署成功后,用户将可以通过 Cloudflare Zero Trust 身份认证并使用 LobeHub。</Callout>
## 相关资源
diff --git a/docs/self-hosting/advanced/auth/providers/cognito.mdx b/docs/self-hosting/auth/providers/cognito.mdx
similarity index 63%
rename from docs/self-hosting/advanced/auth/providers/cognito.mdx
rename to docs/self-hosting/auth/providers/cognito.mdx
index f7eb1e7e5b3..be9b0c818f1 100644
--- a/docs/self-hosting/advanced/auth/providers/cognito.mdx
+++ b/docs/self-hosting/auth/providers/cognito.mdx
@@ -1,12 +1,12 @@
---
-title: Configuring AWS Cognito Authentication for LobeChat
+title: Configuring AWS Cognito Authentication for LobeHub
description: >-
- Learn how to configure AWS Cognito SSO for LobeChat, including creating a User
+ Learn how to configure AWS Cognito SSO for LobeHub, including creating a User
Pool and App Client in AWS Console.
tags:
- AWS Cognito
- Authentication
- - LobeChat
+ - LobeHub
- Single Sign-On
---
@@ -61,15 +61,15 @@ tags:
### Configure Environment Variables
- | Environment Variable | Type | Description |
- | -------------------------------- | -------- | ------------------------------------------------------------------ |
- | `AUTH_SECRET` | Required | Session encryption key, generate with `openssl rand -base64 32` |
- | `AUTH_SSO_PROVIDERS` | Required | Set to `cognito` |
- | `AUTH_COGNITO_ID` | Required | App Client ID |
- | `AUTH_COGNITO_SECRET` | Required | App Client Secret |
- | `AUTH_COGNITO_DOMAIN` | Required | Cognito domain (e.g., `your-app.auth.us-east-1.amazoncognito.com`) |
- | `AUTH_COGNITO_REGION` | Required | AWS Region (e.g., `us-east-1`) |
- | `AUTH_COGNITO_USERPOOL_ID` | Required | User Pool ID (e.g., `us-east-1_XXXXXXXXX`) |
+ | Environment Variable | Type | Description |
+ | -------------------------- | -------- | ------------------------------------------------------------------ |
+ | `AUTH_SECRET` | Required | Session encryption key, generate with `openssl rand -base64 32` |
+ | `AUTH_SSO_PROVIDERS` | Required | Set to `cognito` |
+ | `AUTH_COGNITO_ID` | Required | App Client ID |
+ | `AUTH_COGNITO_SECRET` | Required | App Client Secret |
+ | `AUTH_COGNITO_DOMAIN` | Required | Cognito domain (e.g., `your-app.auth.us-east-1.amazoncognito.com`) |
+ | `AUTH_COGNITO_REGION` | Required | AWS Region (e.g., `us-east-1`) |
+ | `AUTH_COGNITO_USERPOOL_ID` | Required | User Pool ID (e.g., `us-east-1_XXXXXXXXX`) |
<Callout type={'tip'}>
Go to [📘 Environment Variables](/docs/self-hosting/environment-variables/auth#cognito)
@@ -79,7 +79,7 @@ tags:
<Callout type={'info'}>
After successful deployment, users will be able to authenticate with AWS
- Cognito and use LobeChat.
+ Cognito and use LobeHub.
</Callout>
## Related Resources
diff --git a/docs/self-hosting/advanced/auth/providers/cognito.zh-CN.mdx b/docs/self-hosting/auth/providers/cognito.zh-CN.mdx
similarity index 63%
rename from docs/self-hosting/advanced/auth/providers/cognito.zh-CN.mdx
rename to docs/self-hosting/auth/providers/cognito.zh-CN.mdx
index de161cb9aa2..e4fab11f1df 100644
--- a/docs/self-hosting/advanced/auth/providers/cognito.zh-CN.mdx
+++ b/docs/self-hosting/auth/providers/cognito.zh-CN.mdx
@@ -1,10 +1,10 @@
---
-title: 在 LobeChat 中配置 AWS Cognito 身份验证
-description: 学习如何在 LobeChat 中配置 AWS Cognito SSO,包括在 AWS Console 创建用户池和应用客户端。
+title: 在 LobeHub 中配置 AWS Cognito 身份验证
+description: 学习如何在 LobeHub 中配置 AWS Cognito SSO,包括在 AWS Console 创建用户池和应用客户端。
tags:
- AWS Cognito
- 身份验证
- - LobeChat
+ - LobeHub
- 单点登录
---
@@ -59,15 +59,15 @@ tags:
### 配置环境变量
- | 环境变量 | 类型 | 描述 |
- | -------------------------------- | -- | --------------------------------------------------------- |
- | `AUTH_SECRET` | 必选 | 会话加密密钥,使用 `openssl rand -base64 32` 生成 |
- | `AUTH_SSO_PROVIDERS` | 必选 | 填写 `cognito` |
- | `AUTH_COGNITO_ID` | 必选 | 应用客户端 ID |
- | `AUTH_COGNITO_SECRET` | 必选 | 应用客户端 Secret |
- | `AUTH_COGNITO_DOMAIN` | 必选 | Cognito 域名(如 `your-app.auth.us-east-1.amazoncognito.com`) |
- | `AUTH_COGNITO_REGION` | 必选 | AWS 区域(如 `us-east-1`) |
- | `AUTH_COGNITO_USERPOOL_ID` | 必选 | 用户池 ID(如 `us-east-1_XXXXXXXXX`) |
+ | 环境变量 | 类型 | 描述 |
+ | -------------------------- | -- | --------------------------------------------------------- |
+ | `AUTH_SECRET` | 必选 | 会话加密密钥,使用 `openssl rand -base64 32` 生成 |
+ | `AUTH_SSO_PROVIDERS` | 必选 | 填写 `cognito` |
+ | `AUTH_COGNITO_ID` | 必选 | 应用客户端 ID |
+ | `AUTH_COGNITO_SECRET` | 必选 | 应用客户端 Secret |
+ | `AUTH_COGNITO_DOMAIN` | 必选 | Cognito 域名(如 `your-app.auth.us-east-1.amazoncognito.com`) |
+ | `AUTH_COGNITO_REGION` | 必选 | AWS 区域(如 `us-east-1`) |
+ | `AUTH_COGNITO_USERPOOL_ID` | 必选 | 用户池 ID(如 `us-east-1_XXXXXXXXX`) |
<Callout type={'tip'}>
前往 [📘 环境变量](/zh/docs/self-hosting/environment-variables/auth#cognito)
@@ -76,7 +76,7 @@ tags:
</Steps>
<Callout type={'info'}>
- 部署成功后,用户将可以通过 AWS Cognito 身份认证并使用 LobeChat。
+ 部署成功后,用户将可以通过 AWS Cognito 身份认证并使用 LobeHub。
</Callout>
## 相关资源
diff --git a/docs/self-hosting/advanced/auth/providers/feishu.mdx b/docs/self-hosting/auth/providers/feishu.mdx
similarity index 67%
rename from docs/self-hosting/advanced/auth/providers/feishu.mdx
rename to docs/self-hosting/auth/providers/feishu.mdx
index b4a20900895..f8afc16d673 100644
--- a/docs/self-hosting/advanced/auth/providers/feishu.mdx
+++ b/docs/self-hosting/auth/providers/feishu.mdx
@@ -1,13 +1,13 @@
---
-title: Configuring Feishu (Lark) Authentication for LobeChat
+title: Configuring Feishu (Lark) Authentication for LobeHub
description: >-
- Learn how to configure Feishu (Lark) SSO for LobeChat, including creating an
+ Learn how to configure Feishu (Lark) SSO for LobeHub, including creating an
application and setting up environment variables.
tags:
- Feishu
- Lark
- Authentication
- - LobeChat
+ - LobeHub
- Single Sign-On
---
@@ -49,12 +49,12 @@ tags:
### Configure Environment Variables
- | Environment Variable | Type | Description |
- | -------------------------------- | -------- | --------------------------------------------------------------- |
- | `AUTH_SECRET` | Required | Session encryption key, generate with `openssl rand -base64 32` |
- | `AUTH_SSO_PROVIDERS` | Required | Set to `feishu` |
- | `AUTH_FEISHU_APP_ID` | Required | App ID from Feishu Open Platform |
- | `AUTH_FEISHU_APP_SECRET` | Required | App Secret from Feishu Open Platform |
+ | Environment Variable | Type | Description |
+ | ------------------------ | -------- | --------------------------------------------------------------- |
+ | `AUTH_SECRET` | Required | Session encryption key, generate with `openssl rand -base64 32` |
+ | `AUTH_SSO_PROVIDERS` | Required | Set to `feishu` |
+ | `AUTH_FEISHU_APP_ID` | Required | App ID from Feishu Open Platform |
+ | `AUTH_FEISHU_APP_SECRET` | Required | App Secret from Feishu Open Platform |
<Callout type={'tip'}>
Go to [📘 Environment Variables](/docs/self-hosting/environment-variables/auth#feishu)
@@ -64,7 +64,7 @@ tags:
<Callout type={'info'}>
After successful deployment, users will be able to authenticate with Feishu
- and use LobeChat.
+ and use LobeHub.
</Callout>
## Related Resources
diff --git a/docs/self-hosting/advanced/auth/providers/feishu.zh-CN.mdx b/docs/self-hosting/auth/providers/feishu.zh-CN.mdx
similarity index 67%
rename from docs/self-hosting/advanced/auth/providers/feishu.zh-CN.mdx
rename to docs/self-hosting/auth/providers/feishu.zh-CN.mdx
index df401b10ab2..42b43147399 100644
--- a/docs/self-hosting/advanced/auth/providers/feishu.zh-CN.mdx
+++ b/docs/self-hosting/auth/providers/feishu.zh-CN.mdx
@@ -1,10 +1,10 @@
---
-title: 在 LobeChat 中配置飞书身份验证
-description: 学习如何在 LobeChat 中配置飞书 SSO,包括创建应用和设置环境变量。
+title: 在 LobeHub 中配置飞书身份验证
+description: 学习如何在 LobeHub 中配置飞书 SSO,包括创建应用和设置环境变量。
tags:
- 飞书
- 身份验证
- - LobeChat
+ - LobeHub
- 单点登录
---
@@ -46,12 +46,12 @@ tags:
### 配置环境变量
- | 环境变量 | 类型 | 描述 |
- | -------------------------------- | -- | -------------------------------------- |
- | `AUTH_SECRET` | 必选 | 会话加密密钥,使用 `openssl rand -base64 32` 生成 |
- | `AUTH_SSO_PROVIDERS` | 必选 | 填写 `feishu` |
- | `AUTH_FEISHU_APP_ID` | 必选 | 飞书开放平台的 App ID |
- | `AUTH_FEISHU_APP_SECRET` | 必选 | 飞书开放平台的 App Secret |
+ | 环境变量 | 类型 | 描述 |
+ | ------------------------ | -- | -------------------------------------- |
+ | `AUTH_SECRET` | 必选 | 会话加密密钥,使用 `openssl rand -base64 32` 生成 |
+ | `AUTH_SSO_PROVIDERS` | 必选 | 填写 `feishu` |
+ | `AUTH_FEISHU_APP_ID` | 必选 | 飞书开放平台的 App ID |
+ | `AUTH_FEISHU_APP_SECRET` | 必选 | 飞书开放平台的 App Secret |
<Callout type={'tip'}>
前往 [📘 环境变量](/zh/docs/self-hosting/environment-variables/auth#feishu)
@@ -60,7 +60,7 @@ tags:
</Steps>
<Callout type={'info'}>
- 部署成功后,用户将可以通过飞书身份认证并使用 LobeChat。
+ 部署成功后,用户将可以通过飞书身份认证并使用 LobeHub。
</Callout>
## 相关资源
diff --git a/docs/self-hosting/advanced/auth/providers/generic-oidc.mdx b/docs/self-hosting/auth/providers/generic-oidc.mdx
similarity index 62%
rename from docs/self-hosting/advanced/auth/providers/generic-oidc.mdx
rename to docs/self-hosting/auth/providers/generic-oidc.mdx
index e1ce429ca85..15c65ffb4bf 100644
--- a/docs/self-hosting/advanced/auth/providers/generic-oidc.mdx
+++ b/docs/self-hosting/auth/providers/generic-oidc.mdx
@@ -1,19 +1,19 @@
---
-title: Configuring Generic OIDC Authentication for LobeChat
+title: Configuring Generic OIDC Authentication for LobeHub
description: >-
- Learn how to configure any OpenID Connect provider for LobeChat using Generic
+ Learn how to configure any OpenID Connect provider for LobeHub using Generic
OIDC integration.
tags:
- Generic OIDC
- OpenID Connect
- Authentication
- - LobeChat
+ - LobeHub
- Single Sign-On
---
# Configuring Generic OIDC Authentication
-Use Generic OIDC to integrate LobeChat with any OpenID Connect compliant identity provider not explicitly listed in our supported providers.
+Use Generic OIDC to integrate LobeHub with any OpenID Connect compliant identity provider not explicitly listed in our supported providers.
<Steps>
### Configure Your OIDC Provider
@@ -48,13 +48,13 @@ Use Generic OIDC to integrate LobeChat with any OpenID Connect compliant identit
### Configure Environment Variables
- | Environment Variable | Type | Description |
- | -------------------------------- | -------- | --------------------------------------------------------------- |
- | `AUTH_SECRET` | Required | Session encryption key, generate with `openssl rand -base64 32` |
- | `AUTH_SSO_PROVIDERS` | Required | Set to `generic-oidc` |
- | `AUTH_GENERIC_OIDC_ID` | Required | Client ID |
- | `AUTH_GENERIC_OIDC_SECRET` | Required | Client Secret |
- | `AUTH_GENERIC_OIDC_ISSUER` | Required | OIDC issuer URL (e.g., `https://your-provider.com`) |
+ | Environment Variable | Type | Description |
+ | -------------------------- | -------- | --------------------------------------------------------------- |
+ | `AUTH_SECRET` | Required | Session encryption key, generate with `openssl rand -base64 32` |
+ | `AUTH_SSO_PROVIDERS` | Required | Set to `generic-oidc` |
+ | `AUTH_GENERIC_OIDC_ID` | Required | Client ID |
+ | `AUTH_GENERIC_OIDC_SECRET` | Required | Client Secret |
+ | `AUTH_GENERIC_OIDC_ISSUER` | Required | OIDC issuer URL (e.g., `https://your-provider.com`) |
<Callout type={'tip'}>
Go to [📘 Environment Variables](/docs/self-hosting/environment-variables/auth#generic-oidc)
@@ -64,7 +64,7 @@ Use Generic OIDC to integrate LobeChat with any OpenID Connect compliant identit
<Callout type={'info'}>
After successful deployment, users will be able to authenticate with your OIDC
- provider and use LobeChat.
+ provider and use LobeHub.
</Callout>
## Troubleshooting
diff --git a/docs/self-hosting/advanced/auth/providers/generic-oidc.zh-CN.mdx b/docs/self-hosting/auth/providers/generic-oidc.zh-CN.mdx
similarity index 61%
rename from docs/self-hosting/advanced/auth/providers/generic-oidc.zh-CN.mdx
rename to docs/self-hosting/auth/providers/generic-oidc.zh-CN.mdx
index a14c7a3baf9..fc42af91366 100644
--- a/docs/self-hosting/advanced/auth/providers/generic-oidc.zh-CN.mdx
+++ b/docs/self-hosting/auth/providers/generic-oidc.zh-CN.mdx
@@ -1,17 +1,17 @@
---
-title: 在 LobeChat 中配置 Generic OIDC 身份验证
-description: 学习如何使用 Generic OIDC 集成将 LobeChat 与任何 OpenID Connect 提供商对接。
+title: 在 LobeHub 中配置 Generic OIDC 身份验证
+description: 学习如何使用 Generic OIDC 集成将 LobeHub 与任何 OpenID Connect 提供商对接。
tags:
- Generic OIDC
- OpenID Connect
- 身份验证
- - LobeChat
+ - LobeHub
- 单点登录
---
# 配置 Generic OIDC 身份验证
-使用 Generic OIDC 可以将 LobeChat 与任何符合 OpenID Connect 标准的身份提供商集成,适用于不在我们支持列表中的提供商。
+使用 Generic OIDC 可以将 LobeHub 与任何符合 OpenID Connect 标准的身份提供商集成,适用于不在我们支持列表中的提供商。
<Steps>
### 配置你的 OIDC 提供商
@@ -46,13 +46,13 @@ tags:
### 配置环境变量
- | 环境变量 | 类型 | 描述 |
- | -------------------------------- | -- | ---------------------------------------------- |
- | `AUTH_SECRET` | 必选 | 会话加密密钥,使用 `openssl rand -base64 32` 生成 |
- | `AUTH_SSO_PROVIDERS` | 必选 | 填写 `generic-oidc` |
- | `AUTH_GENERIC_OIDC_ID` | 必选 | Client ID |
- | `AUTH_GENERIC_OIDC_SECRET` | 必选 | Client Secret |
- | `AUTH_GENERIC_OIDC_ISSUER` | 必选 | OIDC Issuer URL(如 `https://your-provider.com`) |
+ | 环境变量 | 类型 | 描述 |
+ | -------------------------- | -- | ---------------------------------------------- |
+ | `AUTH_SECRET` | 必选 | 会话加密密钥,使用 `openssl rand -base64 32` 生成 |
+ | `AUTH_SSO_PROVIDERS` | 必选 | 填写 `generic-oidc` |
+ | `AUTH_GENERIC_OIDC_ID` | 必选 | Client ID |
+ | `AUTH_GENERIC_OIDC_SECRET` | 必选 | Client Secret |
+ | `AUTH_GENERIC_OIDC_ISSUER` | 必选 | OIDC Issuer URL(如 `https://your-provider.com`) |
<Callout type={'tip'}>
前往 [📘 环境变量](/zh/docs/self-hosting/environment-variables/auth#generic-oidc)
@@ -61,7 +61,7 @@ tags:
</Steps>
<Callout type={'info'}>
- 部署成功后,用户将可以通过你的 OIDC 提供商身份认证并使用 LobeChat。
+ 部署成功后,用户将可以通过你的 OIDC 提供商身份认证并使用 LobeHub。
</Callout>
## 故障排除
diff --git a/docs/self-hosting/advanced/auth/providers/github.mdx b/docs/self-hosting/auth/providers/github.mdx
similarity index 77%
rename from docs/self-hosting/advanced/auth/providers/github.mdx
rename to docs/self-hosting/auth/providers/github.mdx
index 760a7a891ec..aaba664fa7b 100644
--- a/docs/self-hosting/advanced/auth/providers/github.mdx
+++ b/docs/self-hosting/auth/providers/github.mdx
@@ -1,12 +1,12 @@
---
-title: Configuring GitHub Authentication for LobeChat
+title: Configuring GitHub Authentication for LobeHub
description: >-
- Learn how to configure GitHub SSO for LobeChat, including creating a GitHub
+ Learn how to configure GitHub SSO for LobeHub, including creating a GitHub
App, setting up environment variables, and deployment.
tags:
- GitHub
- Authentication
- - LobeChat
+ - LobeHub
- Single Sign-On
---
@@ -59,12 +59,12 @@ tags:
### Configure Environment Variables
- | Environment Variable | Type | Description |
- | -------------------------------- | -------- | --------------------------------------------------------------- |
- | `AUTH_SECRET` | Required | Session encryption key, generate with `openssl rand -base64 32` |
- | `AUTH_SSO_PROVIDERS` | Required | Set to `github` |
- | `AUTH_GITHUB_ID` | Required | Client ID from the GitHub App |
- | `AUTH_GITHUB_SECRET` | Required | Client Secret from the GitHub App |
+ | Environment Variable | Type | Description |
+ | -------------------- | -------- | --------------------------------------------------------------- |
+ | `AUTH_SECRET` | Required | Session encryption key, generate with `openssl rand -base64 32` |
+ | `AUTH_SSO_PROVIDERS` | Required | Set to `github` |
+ | `AUTH_GITHUB_ID` | Required | Client ID from the GitHub App |
+ | `AUTH_GITHUB_SECRET` | Required | Client Secret from the GitHub App |
<Callout type={'tip'}>
Go to [📘 Environment Variables](/docs/self-hosting/environment-variables/auth#github)
@@ -74,7 +74,7 @@ tags:
<Callout type={'info'}>
After successful deployment, users will be able to authenticate with GitHub
- and use LobeChat.
+ and use LobeHub.
</Callout>
## Common Issues
diff --git a/docs/self-hosting/advanced/auth/providers/github.zh-CN.mdx b/docs/self-hosting/auth/providers/github.zh-CN.mdx
similarity index 77%
rename from docs/self-hosting/advanced/auth/providers/github.zh-CN.mdx
rename to docs/self-hosting/auth/providers/github.zh-CN.mdx
index 8d93621eaaa..55650b68d1a 100644
--- a/docs/self-hosting/advanced/auth/providers/github.zh-CN.mdx
+++ b/docs/self-hosting/auth/providers/github.zh-CN.mdx
@@ -1,10 +1,10 @@
---
-title: 在 LobeChat 中配置 GitHub 身份验证
-description: 学习如何在 LobeChat 中配置 GitHub SSO,包括创建 GitHub App、设置环境变量和部署。
+title: 在 LobeHub 中配置 GitHub 身份验证
+description: 学习如何在 LobeHub 中配置 GitHub SSO,包括创建 GitHub App、设置环境变量和部署。
tags:
- GitHub
- 身份验证
- - LobeChat
+ - LobeHub
- 单点登录
---
@@ -57,12 +57,12 @@ tags:
### 配置环境变量
- | 环境变量 | 类型 | 描述 |
- | -------------------------------- | -- | -------------------------------------- |
- | `AUTH_SECRET` | 必选 | 会话加密密钥,使用 `openssl rand -base64 32` 生成 |
- | `AUTH_SSO_PROVIDERS` | 必选 | 填写 `github` |
- | `AUTH_GITHUB_ID` | 必选 | GitHub App 的 Client ID |
- | `AUTH_GITHUB_SECRET` | 必选 | GitHub App 的 Client Secret |
+ | 环境变量 | 类型 | 描述 |
+ | -------------------- | -- | -------------------------------------- |
+ | `AUTH_SECRET` | 必选 | 会话加密密钥,使用 `openssl rand -base64 32` 生成 |
+ | `AUTH_SSO_PROVIDERS` | 必选 | 填写 `github` |
+ | `AUTH_GITHUB_ID` | 必选 | GitHub App 的 Client ID |
+ | `AUTH_GITHUB_SECRET` | 必选 | GitHub App 的 Client Secret |
<Callout type={'tip'}>
前往 [📘 环境变量](/zh/docs/self-hosting/environment-variables/auth#github)
@@ -71,7 +71,7 @@ tags:
</Steps>
<Callout type={'info'}>
- 部署成功后,用户将可以通过 GitHub 身份认证并使用 LobeChat。
+ 部署成功后,用户将可以通过 GitHub 身份认证并使用 LobeHub。
</Callout>
## 常见问题
diff --git a/docs/self-hosting/advanced/auth/providers/google.mdx b/docs/self-hosting/auth/providers/google.mdx
similarity index 72%
rename from docs/self-hosting/advanced/auth/providers/google.mdx
rename to docs/self-hosting/auth/providers/google.mdx
index 81e2d3f6b7b..cf980add345 100644
--- a/docs/self-hosting/advanced/auth/providers/google.mdx
+++ b/docs/self-hosting/auth/providers/google.mdx
@@ -1,12 +1,12 @@
---
-title: Configuring Google Authentication for LobeChat
+title: Configuring Google Authentication for LobeHub
description: >-
- Learn how to configure Google SSO for LobeChat, including creating OAuth
+ Learn how to configure Google SSO for LobeHub, including creating OAuth
credentials in Google Cloud Console and setting up environment variables.
tags:
- Google
- Authentication
- - LobeChat
+ - LobeHub
- Single Sign-On
---
@@ -46,12 +46,12 @@ tags:
### Configure Environment Variables
- | Environment Variable | Type | Description |
- | -------------------------------- | -------- | --------------------------------------------------------------- |
- | `AUTH_SECRET` | Required | Session encryption key, generate with `openssl rand -base64 32` |
- | `AUTH_SSO_PROVIDERS` | Required | Set to `google` |
- | `AUTH_GOOGLE_ID` | Required | Client ID from Google Cloud Console |
- | `AUTH_GOOGLE_SECRET` | Required | Client Secret from Google Cloud Console |
+ | Environment Variable | Type | Description |
+ | -------------------- | -------- | --------------------------------------------------------------- |
+ | `AUTH_SECRET` | Required | Session encryption key, generate with `openssl rand -base64 32` |
+ | `AUTH_SSO_PROVIDERS` | Required | Set to `google` |
+ | `AUTH_GOOGLE_ID` | Required | Client ID from Google Cloud Console |
+ | `AUTH_GOOGLE_SECRET` | Required | Client Secret from Google Cloud Console |
<Callout type={'tip'}>
Go to [📘 Environment Variables](/docs/self-hosting/environment-variables/auth#google)
@@ -61,7 +61,7 @@ tags:
<Callout type={'info'}>
After successful deployment, users will be able to authenticate with Google
- and use LobeChat.
+ and use LobeHub.
</Callout>
## Common Issues
diff --git a/docs/self-hosting/advanced/auth/providers/google.zh-CN.mdx b/docs/self-hosting/auth/providers/google.zh-CN.mdx
similarity index 71%
rename from docs/self-hosting/advanced/auth/providers/google.zh-CN.mdx
rename to docs/self-hosting/auth/providers/google.zh-CN.mdx
index 6ed571884f9..ab2a8a4b672 100644
--- a/docs/self-hosting/advanced/auth/providers/google.zh-CN.mdx
+++ b/docs/self-hosting/auth/providers/google.zh-CN.mdx
@@ -1,10 +1,10 @@
---
-title: 在 LobeChat 中配置 Google 身份验证
-description: 学习如何在 LobeChat 中配置 Google SSO,包括在 Google Cloud Console 创建 OAuth 凭证和设置环境变量。
+title: 在 LobeHub 中配置 Google 身份验证
+description: 学习如何在 LobeHub 中配置 Google SSO,包括在 Google Cloud Console 创建 OAuth 凭证和设置环境变量。
tags:
- Google
- 身份验证
- - LobeChat
+ - LobeHub
- 单点登录
---
@@ -44,12 +44,12 @@ tags:
### 配置环境变量
- | 环境变量 | 类型 | 描述 |
- | -------------------------------- | -- | -------------------------------------- |
- | `AUTH_SECRET` | 必选 | 会话加密密钥,使用 `openssl rand -base64 32` 生成 |
- | `AUTH_SSO_PROVIDERS` | 必选 | 填写 `google` |
- | `AUTH_GOOGLE_ID` | 必选 | Google Cloud Console 中的 Client ID |
- | `AUTH_GOOGLE_SECRET` | 必选 | Google Cloud Console 中的 Client Secret |
+ | 环境变量 | 类型 | 描述 |
+ | -------------------- | -- | -------------------------------------- |
+ | `AUTH_SECRET` | 必选 | 会话加密密钥,使用 `openssl rand -base64 32` 生成 |
+ | `AUTH_SSO_PROVIDERS` | 必选 | 填写 `google` |
+ | `AUTH_GOOGLE_ID` | 必选 | Google Cloud Console 中的 Client ID |
+ | `AUTH_GOOGLE_SECRET` | 必选 | Google Cloud Console 中的 Client Secret |
<Callout type={'tip'}>
前往 [📘 环境变量](/zh/docs/self-hosting/environment-variables/auth#google)
@@ -58,7 +58,7 @@ tags:
</Steps>
<Callout type={'info'}>
- 部署成功后,用户将可以通过 Google 身份认证并使用 LobeChat。
+ 部署成功后,用户将可以通过 Google 身份认证并使用 LobeHub。
</Callout>
## 常见问题
diff --git a/docs/self-hosting/advanced/auth/providers/keycloak.mdx b/docs/self-hosting/auth/providers/keycloak.mdx
similarity index 64%
rename from docs/self-hosting/advanced/auth/providers/keycloak.mdx
rename to docs/self-hosting/auth/providers/keycloak.mdx
index 709b7991786..1dbbc332708 100644
--- a/docs/self-hosting/advanced/auth/providers/keycloak.mdx
+++ b/docs/self-hosting/auth/providers/keycloak.mdx
@@ -1,12 +1,12 @@
---
-title: Configuring Keycloak Authentication for LobeChat
+title: Configuring Keycloak Authentication for LobeHub
description: >-
- Learn how to configure Keycloak SSO for LobeChat, including creating a client
+ Learn how to configure Keycloak SSO for LobeHub, including creating a client
and setting up environment variables.
tags:
- Keycloak
- Authentication
- - LobeChat
+ - LobeHub
- Single Sign-On
---
@@ -52,13 +52,13 @@ tags:
### Configure Environment Variables
- | Environment Variable | Type | Description |
- | -------------------------------- | -------- | --------------------------------------------------------------- |
- | `AUTH_SECRET` | Required | Session encryption key, generate with `openssl rand -base64 32` |
- | `AUTH_SSO_PROVIDERS` | Required | Set to `keycloak` |
- | `AUTH_KEYCLOAK_ID` | Required | Client ID |
- | `AUTH_KEYCLOAK_SECRET` | Required | Client Secret |
- | `AUTH_KEYCLOAK_ISSUER` | Required | `https://your-keycloak-domain/realms/your-realm` |
+ | Environment Variable | Type | Description |
+ | ---------------------- | -------- | --------------------------------------------------------------- |
+ | `AUTH_SECRET` | Required | Session encryption key, generate with `openssl rand -base64 32` |
+ | `AUTH_SSO_PROVIDERS` | Required | Set to `keycloak` |
+ | `AUTH_KEYCLOAK_ID` | Required | Client ID |
+ | `AUTH_KEYCLOAK_SECRET` | Required | Client Secret |
+ | `AUTH_KEYCLOAK_ISSUER` | Required | `https://your-keycloak-domain/realms/your-realm` |
<Callout type={'tip'}>
Go to [📘 Environment Variables](/docs/self-hosting/environment-variables/auth#keycloak)
@@ -68,7 +68,7 @@ tags:
<Callout type={'info'}>
After successful deployment, users will be able to authenticate with Keycloak
- and use LobeChat.
+ and use LobeHub.
</Callout>
## Related Resources
diff --git a/docs/self-hosting/advanced/auth/providers/keycloak.zh-CN.mdx b/docs/self-hosting/auth/providers/keycloak.zh-CN.mdx
similarity index 64%
rename from docs/self-hosting/advanced/auth/providers/keycloak.zh-CN.mdx
rename to docs/self-hosting/auth/providers/keycloak.zh-CN.mdx
index 48da6cee8c4..f9493212e5a 100644
--- a/docs/self-hosting/advanced/auth/providers/keycloak.zh-CN.mdx
+++ b/docs/self-hosting/auth/providers/keycloak.zh-CN.mdx
@@ -1,10 +1,10 @@
---
-title: 在 LobeChat 中配置 Keycloak 身份验证
-description: 学习如何在 LobeChat 中配置 Keycloak SSO,包括创建客户端和设置环境变量。
+title: 在 LobeHub 中配置 Keycloak 身份验证
+description: 学习如何在 LobeHub 中配置 Keycloak SSO,包括创建客户端和设置环境变量。
tags:
- Keycloak
- 身份验证
- - LobeChat
+ - LobeHub
- 单点登录
---
@@ -50,13 +50,13 @@ tags:
### 配置环境变量
- | 环境变量 | 类型 | 描述 |
- | -------------------------------- | -- | ------------------------------------------------ |
- | `AUTH_SECRET` | 必选 | 会话加密密钥,使用 `openssl rand -base64 32` 生成 |
- | `AUTH_SSO_PROVIDERS` | 必选 | 填写 `keycloak` |
- | `AUTH_KEYCLOAK_ID` | 必选 | Client ID |
- | `AUTH_KEYCLOAK_SECRET` | 必选 | Client Secret |
- | `AUTH_KEYCLOAK_ISSUER` | 必选 | `https://your-keycloak-domain/realms/your-realm` |
+ | 环境变量 | 类型 | 描述 |
+ | ---------------------- | -- | ------------------------------------------------ |
+ | `AUTH_SECRET` | 必选 | 会话加密密钥,使用 `openssl rand -base64 32` 生成 |
+ | `AUTH_SSO_PROVIDERS` | 必选 | 填写 `keycloak` |
+ | `AUTH_KEYCLOAK_ID` | 必选 | Client ID |
+ | `AUTH_KEYCLOAK_SECRET` | 必选 | Client Secret |
+ | `AUTH_KEYCLOAK_ISSUER` | 必选 | `https://your-keycloak-domain/realms/your-realm` |
<Callout type={'tip'}>
前往 [📘 环境变量](/zh/docs/self-hosting/environment-variables/auth#keycloak)
@@ -65,7 +65,7 @@ tags:
</Steps>
<Callout type={'info'}>
- 部署成功后,用户将可以通过 Keycloak 身份认证并使用 LobeChat。
+ 部署成功后,用户将可以通过 Keycloak 身份认证并使用 LobeHub。
</Callout>
## 相关资源
diff --git a/docs/self-hosting/advanced/auth/providers/logto.mdx b/docs/self-hosting/auth/providers/logto.mdx
similarity index 86%
rename from docs/self-hosting/advanced/auth/providers/logto.mdx
rename to docs/self-hosting/auth/providers/logto.mdx
index a125e9df592..7601fe86116 100644
--- a/docs/self-hosting/advanced/auth/providers/logto.mdx
+++ b/docs/self-hosting/auth/providers/logto.mdx
@@ -1,12 +1,12 @@
---
-title: Configuring Logto Authentication for LobeChat
+title: Configuring Logto Authentication for LobeHub
description: >-
- Learn how to configure Logto SSO for LobeChat, including creating an
+ Learn how to configure Logto SSO for LobeHub, including creating an
application and setting up environment variables.
tags:
- Logto
- Authentication
- - LobeChat
+ - LobeHub
- Single Sign-On
- OIDC
---
@@ -21,7 +21,7 @@ tags:
1. Log in to your Logto Console
2. Go to **Applications** and click **Create application**
3. Select **Traditional web** as the application type
- 4. Fill in the application name: `LobeChat`
+ 4. Fill in the application name: `LobeHub`
5. Configure redirect URIs:
<Callout type={'info'}>
@@ -39,12 +39,12 @@ tags:
### Configure Environment Variables
- When deploying LobeChat, you need to configure the following environment variables:
+ When deploying LobeHub, you need to configure the following environment variables:
| Environment Variable | Type | Description |
| --------------------------- | -------- | ----------------------------------------------------------------------------- |
| `AUTH_SECRET` | Required | Key used to encrypt session tokens. Generate using: `openssl rand -base64 32` |
- | `AUTH_SSO_PROVIDERS` | Required | SSO provider for LobeChat. Use `logto` for Logto |
+ | `AUTH_SSO_PROVIDERS` | Required | SSO provider for LobeHub. Use `logto` for Logto |
| `AUTH_LOGTO_ID` | Required | App ID from Logto application |
| `AUTH_LOGTO_SECRET` | Required | App Secret from Logto application |
| `AUTH_LOGTO_ISSUER` | Required | Logto issuer URL (e.g., `https://your-tenant.logto.app/oidc`) |
@@ -56,7 +56,7 @@ tags:
### Configure Webhook (Optional)
- Configure Logto [Webhook](https://docs.logto.io/developers/webhooks/configure-webhooks) to sync user data updates to LobeChat.
+ Configure Logto [Webhook](https://docs.logto.io/developers/webhooks/configure-webhooks) to sync user data updates to LobeHub.
1. Go to **Webhooks** in Logto Console and create a Webhook
2. Fill in the following fields:
@@ -68,7 +68,7 @@ tags:
</Steps>
<Callout type={'info'}>
- After successful deployment, users will be able to authenticate with Logto and use LobeChat.
+ After successful deployment, users will be able to authenticate with Logto and use LobeHub.
</Callout>
## Related Resources
diff --git a/docs/self-hosting/advanced/auth/providers/logto.zh-CN.mdx b/docs/self-hosting/auth/providers/logto.zh-CN.mdx
similarity index 88%
rename from docs/self-hosting/advanced/auth/providers/logto.zh-CN.mdx
rename to docs/self-hosting/auth/providers/logto.zh-CN.mdx
index 1f351c6af63..53e0b3fd5e9 100644
--- a/docs/self-hosting/advanced/auth/providers/logto.zh-CN.mdx
+++ b/docs/self-hosting/auth/providers/logto.zh-CN.mdx
@@ -1,10 +1,10 @@
---
-title: 在 LobeChat 中配置 Logto 身份验证
-description: 学习如何在 LobeChat 中配置 Logto SSO,包括创建应用和设置环境变量。
+title: 在 LobeHub 中配置 Logto 身份验证
+description: 学习如何在 LobeHub 中配置 Logto SSO,包括创建应用和设置环境变量。
tags:
- Logto
- 身份验证
- - LobeChat
+ - LobeHub
- 单点登录
- OIDC
---
@@ -19,7 +19,7 @@ tags:
1. 登录 Logto 控制台
2. 前往 **Applications**,点击 **Create application**
3. 选择 **Traditional web** 作为应用类型
- 4. 填写应用名称:`LobeChat`
+ 4. 填写应用名称:`LobeHub`
5. 配置重定向 URI:
<Callout type={'info'}>
@@ -37,7 +37,7 @@ tags:
### 配置环境变量
- 在部署 LobeChat 时,你需要配置以下环境变量:
+ 在部署 LobeHub 时,你需要配置以下环境变量:
| 环境变量 | 类型 | 描述 |
| --------------------------- | -- | --------------------------------------------------------- |
@@ -54,7 +54,7 @@ tags:
### 配置 Webhook(可选)
- 配置 Logto 的 [Webhook](https://docs.logto.io/developers/webhooks/configure-webhooks),以便在用户信息更新时 LobeChat 可以接收到通知并同步数据。
+ 配置 Logto 的 [Webhook](https://docs.logto.io/developers/webhooks/configure-webhooks),以便在用户信息更新时 LobeHub 可以接收到通知并同步数据。
1. 前往 Logto 控制台的 `Webhooks`,创建一个 Webhook
2. 填写以下字段:
@@ -65,7 +65,7 @@ tags:
3. 创建后,复制 `签名密钥` 填写到环境变量 `LOGTO_WEBHOOK_SIGNING_KEY`
</Steps>
-<Callout type={'info'}>部署成功后,用户将可以通过 Logto 身份认证并使用 LobeChat。</Callout>
+<Callout type={'info'}>部署成功后,用户将可以通过 Logto 身份认证并使用 LobeHub。</Callout>
## 相关资源
diff --git a/docs/self-hosting/advanced/auth/providers/microsoft.mdx b/docs/self-hosting/auth/providers/microsoft.mdx
similarity index 76%
rename from docs/self-hosting/advanced/auth/providers/microsoft.mdx
rename to docs/self-hosting/auth/providers/microsoft.mdx
index 76f85589b5d..22d4671d0f1 100644
--- a/docs/self-hosting/advanced/auth/providers/microsoft.mdx
+++ b/docs/self-hosting/auth/providers/microsoft.mdx
@@ -1,14 +1,14 @@
---
-title: Configuring Microsoft Authentication for LobeChat
+title: Configuring Microsoft Authentication for LobeHub
description: >-
- Learn how to configure Microsoft (Entra ID / Azure AD) SSO for LobeChat,
+ Learn how to configure Microsoft (Entra ID / Azure AD) SSO for LobeHub,
including creating applications in Azure Portal and setting up environment
variables.
tags:
- Microsoft
- Authentication
- Azure AD
- - LobeChat
+ - LobeHub
- Single Sign-On
---
@@ -70,12 +70,12 @@ tags:
### Configure Environment Variables
- | Environment Variable | Type | Description |
- | -------------------------------- | -------- | --------------------------------------------------------------- |
- | `AUTH_SECRET` | Required | Session encryption key, generate with `openssl rand -base64 32` |
- | `AUTH_SSO_PROVIDERS` | Required | Set to `microsoft` |
- | `AUTH_MICROSOFT_ID` | Required | Application (client) ID |
- | `AUTH_MICROSOFT_SECRET` | Required | Client secret value |
+ | Environment Variable | Type | Description |
+ | ----------------------- | -------- | --------------------------------------------------------------- |
+ | `AUTH_SECRET` | Required | Session encryption key, generate with `openssl rand -base64 32` |
+ | `AUTH_SSO_PROVIDERS` | Required | Set to `microsoft` |
+ | `AUTH_MICROSOFT_ID` | Required | Application (client) ID |
+ | `AUTH_MICROSOFT_SECRET` | Required | Client secret value |
<Callout type={'info'}>
**Alternative Environment Variables**: For backward compatibility, these
@@ -94,14 +94,14 @@ tags:
<Callout type={'info'}>
After successful deployment, users will be able to authenticate with Microsoft
- and use LobeChat.
+ and use LobeHub.
</Callout>
## Common Issues
### Tenant Configuration
-By default, LobeChat uses `common` tenant which allows both organizational and personal Microsoft accounts. If you need single-tenant configuration, you may need to customize the tenant settings.
+By default, LobeHub uses `common` tenant which allows both organizational and personal Microsoft accounts. If you need single-tenant configuration, you may need to customize the tenant settings.
### Client Secret Expiration
diff --git a/docs/self-hosting/advanced/auth/providers/microsoft.zh-CN.mdx b/docs/self-hosting/auth/providers/microsoft.zh-CN.mdx
similarity index 75%
rename from docs/self-hosting/advanced/auth/providers/microsoft.zh-CN.mdx
rename to docs/self-hosting/auth/providers/microsoft.zh-CN.mdx
index f97208b273a..5044f997113 100644
--- a/docs/self-hosting/advanced/auth/providers/microsoft.zh-CN.mdx
+++ b/docs/self-hosting/auth/providers/microsoft.zh-CN.mdx
@@ -1,13 +1,13 @@
---
-title: 在 LobeChat 中配置 Microsoft 身份验证
+title: 在 LobeHub 中配置 Microsoft 身份验证
description: >-
- 学习如何在 LobeChat 中配置 Microsoft (Entra ID / Azure AD) SSO,包括在 Azure Portal
+ 学习如何在 LobeHub 中配置 Microsoft (Entra ID / Azure AD) SSO,包括在 Azure Portal
创建应用和设置环境变量。
tags:
- Microsoft
- 身份验证
- Azure AD
- - LobeChat
+ - LobeHub
- 单点登录
---
@@ -68,12 +68,12 @@ tags:
### 配置环境变量
- | 环境变量 | 类型 | 描述 |
- | -------------------------------- | -- | -------------------------------------- |
- | `AUTH_SECRET` | 必选 | 会话加密密钥,使用 `openssl rand -base64 32` 生成 |
- | `AUTH_SSO_PROVIDERS` | 必选 | 填写 `microsoft` |
- | `AUTH_MICROSOFT_ID` | 必选 | Application (client) ID |
- | `AUTH_MICROSOFT_SECRET` | 必选 | 客户端密钥值 |
+ | 环境变量 | 类型 | 描述 |
+ | ----------------------- | -- | -------------------------------------- |
+ | `AUTH_SECRET` | 必选 | 会话加密密钥,使用 `openssl rand -base64 32` 生成 |
+ | `AUTH_SSO_PROVIDERS` | 必选 | 填写 `microsoft` |
+ | `AUTH_MICROSOFT_ID` | 必选 | Application (client) ID |
+ | `AUTH_MICROSOFT_SECRET` | 必选 | 客户端密钥值 |
<Callout type={'info'}>
**兼容的环境变量**:为了向后兼容,以下别名也支持:
@@ -90,14 +90,14 @@ tags:
</Steps>
<Callout type={'info'}>
- 部署成功后,用户将可以通过 Microsoft 身份认证并使用 LobeChat。
+ 部署成功后,用户将可以通过 Microsoft 身份认证并使用 LobeHub。
</Callout>
## 常见问题
### 租户配置
-默认情况下,LobeChat 使用 `common` 租户,允许组织帐户和个人 Microsoft 帐户登录。如果需要单租户配置,可能需要自定义租户设置。
+默认情况下,LobeHub 使用 `common` 租户,允许组织帐户和个人 Microsoft 帐户登录。如果需要单租户配置,可能需要自定义租户设置。
### 客户端密钥过期
diff --git a/docs/self-hosting/advanced/auth/providers/okta.mdx b/docs/self-hosting/auth/providers/okta.mdx
similarity index 55%
rename from docs/self-hosting/advanced/auth/providers/okta.mdx
rename to docs/self-hosting/auth/providers/okta.mdx
index b38802a090a..5d5890c4887 100644
--- a/docs/self-hosting/advanced/auth/providers/okta.mdx
+++ b/docs/self-hosting/auth/providers/okta.mdx
@@ -1,12 +1,12 @@
---
-title: Configuring Okta Authentication for LobeChat
+title: Configuring Okta Authentication for LobeHub
description: >-
- Learn how to configure Okta SSO for LobeChat, including creating an
+ Learn how to configure Okta SSO for LobeHub, including creating an
application and setting up environment variables.
tags:
- Okta
- Authentication
- - LobeChat
+ - LobeHub
- Single Sign-On
- OIDC
---
@@ -25,7 +25,7 @@ tags:
- Sign-in method: **OIDC - OpenID Connect**
- Application type: **Web Application**
5. Configure the application:
- - App integration name: `LobeChat`
+ - App integration name: `LobeHub`
- Sign-in redirect URIs: Add your callback URL
<Callout type={'info'}>
@@ -42,15 +42,15 @@ tags:
### Configure Environment Variables
- When deploying LobeChat, you need to configure the following environment variables:
+ When deploying LobeHub, you need to configure the following environment variables:
- | Environment Variable | Type | Description |
- | -------------------------------- | -------- | ----------------------------------------------------------------------------- |
- | `AUTH_SECRET` | Required | Key used to encrypt session tokens. Generate using: `openssl rand -base64 32` |
- | `AUTH_SSO_PROVIDERS` | Required | SSO provider for LobeChat. Use `okta` for Okta |
- | `AUTH_OKTA_ID` | Required | Client ID from Okta application |
- | `AUTH_OKTA_SECRET` | Required | Client Secret from Okta application |
- | `AUTH_OKTA_ISSUER` | Required | Okta issuer URL (e.g., `https://your-okta-domain.okta.com`) |
+ | Environment Variable | Type | Description |
+ | -------------------- | -------- | ----------------------------------------------------------------------------- |
+ | `AUTH_SECRET` | Required | Key used to encrypt session tokens. Generate using: `openssl rand -base64 32` |
+ | `AUTH_SSO_PROVIDERS` | Required | SSO provider for LobeHub. Use `okta` for Okta |
+ | `AUTH_OKTA_ID` | Required | Client ID from Okta application |
+ | `AUTH_OKTA_SECRET` | Required | Client Secret from Okta application |
+ | `AUTH_OKTA_ISSUER` | Required | Okta issuer URL (e.g., `https://your-okta-domain.okta.com`) |
<Callout type={'tip'}>
Go to [📘 Environment Variables](/docs/self-hosting/environment-variables/auth#okta) for detailed information on these variables.
@@ -58,7 +58,7 @@ tags:
</Steps>
<Callout type={'info'}>
- After successful deployment, users will be able to authenticate with Okta and use LobeChat.
+ After successful deployment, users will be able to authenticate with Okta and use LobeHub.
</Callout>
## Related Resources
diff --git a/docs/self-hosting/advanced/auth/providers/okta.zh-CN.mdx b/docs/self-hosting/auth/providers/okta.zh-CN.mdx
similarity index 53%
rename from docs/self-hosting/advanced/auth/providers/okta.zh-CN.mdx
rename to docs/self-hosting/auth/providers/okta.zh-CN.mdx
index 46dd37e6e0f..2e479fa607a 100644
--- a/docs/self-hosting/advanced/auth/providers/okta.zh-CN.mdx
+++ b/docs/self-hosting/auth/providers/okta.zh-CN.mdx
@@ -1,10 +1,10 @@
---
-title: 在 LobeChat 中配置 Okta 身份验证
-description: 学习如何在 LobeChat 中配置 Okta SSO,包括创建应用和设置环境变量。
+title: 在 LobeHub 中配置 Okta 身份验证
+description: 学习如何在 LobeHub 中配置 Okta SSO,包括创建应用和设置环境变量。
tags:
- Okta
- 身份验证
- - LobeChat
+ - LobeHub
- 单点登录
- OIDC
---
@@ -23,7 +23,7 @@ tags:
- Sign-in method: **OIDC - OpenID Connect**
- Application type: **Web Application**
5. 配置应用:
- - App integration name: `LobeChat`
+ - App integration name: `LobeHub`
- Sign-in redirect URIs: 添加回调 URL
<Callout type={'info'}>
@@ -40,22 +40,22 @@ tags:
### 配置环境变量
- 在部署 LobeChat 时,你需要配置以下环境变量:
+ 在部署 LobeHub 时,你需要配置以下环境变量:
- | 环境变量 | 类型 | 描述 |
- | -------------------------------- | -- | ------------------------------------------------------- |
- | `AUTH_SECRET` | 必选 | 用于加密会话令牌的密钥。使用以下命令生成:`openssl rand -base64 32` |
- | `AUTH_SSO_PROVIDERS` | 必选 | SSO 提供商。使用 Okta 请填写 `okta` |
- | `AUTH_OKTA_ID` | 必选 | Okta 应用的 Client ID |
- | `AUTH_OKTA_SECRET` | 必选 | Okta 应用的 Client Secret |
- | `AUTH_OKTA_ISSUER` | 必选 | Okta Issuer URL(例如 `https://your-okta-domain.okta.com`) |
+ | 环境变量 | 类型 | 描述 |
+ | -------------------- | -- | ------------------------------------------------------- |
+ | `AUTH_SECRET` | 必选 | 用于加密会话令牌的密钥。使用以下命令生成:`openssl rand -base64 32` |
+ | `AUTH_SSO_PROVIDERS` | 必选 | SSO 提供商。使用 Okta 请填写 `okta` |
+ | `AUTH_OKTA_ID` | 必选 | Okta 应用的 Client ID |
+ | `AUTH_OKTA_SECRET` | 必选 | Okta 应用的 Client Secret |
+ | `AUTH_OKTA_ISSUER` | 必选 | Okta Issuer URL(例如 `https://your-okta-domain.okta.com`) |
<Callout type={'tip'}>
前往 [📘 环境变量](/zh/docs/self-hosting/environment-variables/auth#okta) 可查阅相关变量详情。
</Callout>
</Steps>
-<Callout type={'info'}>部署成功后,用户将可以通过 Okta 身份认证并使用 LobeChat。</Callout>
+<Callout type={'info'}>部署成功后,用户将可以通过 Okta 身份认证并使用 LobeHub。</Callout>
## 相关资源
diff --git a/docs/self-hosting/advanced/auth/providers/wechat.mdx b/docs/self-hosting/auth/providers/wechat.mdx
similarity index 69%
rename from docs/self-hosting/advanced/auth/providers/wechat.mdx
rename to docs/self-hosting/auth/providers/wechat.mdx
index 337d6ef78be..24b96085fed 100644
--- a/docs/self-hosting/advanced/auth/providers/wechat.mdx
+++ b/docs/self-hosting/auth/providers/wechat.mdx
@@ -1,12 +1,12 @@
---
-title: Configuring WeChat Authentication for LobeChat
+title: Configuring WeChat Authentication for LobeHub
description: >-
- Learn how to configure WeChat SSO for LobeChat, including creating an
+ Learn how to configure WeChat SSO for LobeHub, including creating an
application on WeChat Open Platform.
tags:
- WeChat
- Authentication
- - LobeChat
+ - LobeHub
- Single Sign-On
---
@@ -47,12 +47,12 @@ tags:
### Configure Environment Variables
- | Environment Variable | Type | Description |
- | -------------------------------- | -------- | --------------------------------------------------------------- |
- | `AUTH_SECRET` | Required | Session encryption key, generate with `openssl rand -base64 32` |
- | `AUTH_SSO_PROVIDERS` | Required | Set to `wechat` |
- | `AUTH_WECHAT_ID` | Required | AppID from WeChat Open Platform |
- | `AUTH_WECHAT_SECRET` | Required | AppSecret from WeChat Open Platform |
+ | Environment Variable | Type | Description |
+ | -------------------- | -------- | --------------------------------------------------------------- |
+ | `AUTH_SECRET` | Required | Session encryption key, generate with `openssl rand -base64 32` |
+ | `AUTH_SSO_PROVIDERS` | Required | Set to `wechat` |
+ | `AUTH_WECHAT_ID` | Required | AppID from WeChat Open Platform |
+ | `AUTH_WECHAT_SECRET` | Required | AppSecret from WeChat Open Platform |
<Callout type={'tip'}>
Go to [📘 Environment Variables](/docs/self-hosting/environment-variables/auth#wechat)
@@ -62,7 +62,7 @@ tags:
<Callout type={'info'}>
After successful deployment, users will be able to authenticate with WeChat
- and use LobeChat.
+ and use LobeHub.
</Callout>
## Notes
diff --git a/docs/self-hosting/advanced/auth/providers/wechat.zh-CN.mdx b/docs/self-hosting/auth/providers/wechat.zh-CN.mdx
similarity index 68%
rename from docs/self-hosting/advanced/auth/providers/wechat.zh-CN.mdx
rename to docs/self-hosting/auth/providers/wechat.zh-CN.mdx
index fc0fae4685a..0a8abceaa1b 100644
--- a/docs/self-hosting/advanced/auth/providers/wechat.zh-CN.mdx
+++ b/docs/self-hosting/auth/providers/wechat.zh-CN.mdx
@@ -1,10 +1,10 @@
---
-title: 在 LobeChat 中配置微信身份验证
-description: 学习如何在 LobeChat 中配置微信 SSO,包括在微信开放平台创建应用。
+title: 在 LobeHub 中配置微信身份验证
+description: 学习如何在 LobeHub 中配置微信 SSO,包括在微信开放平台创建应用。
tags:
- 微信
- 身份验证
- - LobeChat
+ - LobeHub
- 单点登录
---
@@ -43,12 +43,12 @@ tags:
### 配置环境变量
- | 环境变量 | 类型 | 描述 |
- | -------------------------------- | -- | -------------------------------------- |
- | `AUTH_SECRET` | 必选 | 会话加密密钥,使用 `openssl rand -base64 32` 生成 |
- | `AUTH_SSO_PROVIDERS` | 必选 | 填写 `wechat` |
- | `AUTH_WECHAT_ID` | 必选 | 微信开放平台的 AppID |
- | `AUTH_WECHAT_SECRET` | 必选 | 微信开放平台的 AppSecret |
+ | 环境变量 | 类型 | 描述 |
+ | -------------------- | -- | -------------------------------------- |
+ | `AUTH_SECRET` | 必选 | 会话加密密钥,使用 `openssl rand -base64 32` 生成 |
+ | `AUTH_SSO_PROVIDERS` | 必选 | 填写 `wechat` |
+ | `AUTH_WECHAT_ID` | 必选 | 微信开放平台的 AppID |
+ | `AUTH_WECHAT_SECRET` | 必选 | 微信开放平台的 AppSecret |
<Callout type={'tip'}>
前往 [📘 环境变量](/zh/docs/self-hosting/environment-variables/auth#wechat)
@@ -57,7 +57,7 @@ tags:
</Steps>
<Callout type={'info'}>
- 部署成功后,用户将可以通过微信身份认证并使用 LobeChat。
+ 部署成功后,用户将可以通过微信身份认证并使用 LobeHub。
</Callout>
## 注意事项
diff --git a/docs/self-hosting/advanced/auth/providers/zitadel.mdx b/docs/self-hosting/auth/providers/zitadel.mdx
similarity index 58%
rename from docs/self-hosting/advanced/auth/providers/zitadel.mdx
rename to docs/self-hosting/auth/providers/zitadel.mdx
index edf461a76e4..8ed1d8c7590 100644
--- a/docs/self-hosting/advanced/auth/providers/zitadel.mdx
+++ b/docs/self-hosting/auth/providers/zitadel.mdx
@@ -1,12 +1,12 @@
---
-title: Configuring ZITADEL Authentication for LobeChat
+title: Configuring ZITADEL Authentication for LobeHub
description: >-
- Learn how to configure ZITADEL SSO for LobeChat, including creating an
+ Learn how to configure ZITADEL SSO for LobeHub, including creating an
application and setting up environment variables.
tags:
- ZITADEL
- Authentication
- - LobeChat
+ - LobeHub
- Single Sign-On
- OIDC
---
@@ -23,7 +23,7 @@ tags:
3. Click **New** to create a new application
4. Select **Web** as the application type
5. Configure:
- - Name: `LobeChat`
+ - Name: `LobeHub`
- Authentication Method: `CODE` (for confidential clients)
6. Add redirect URI:
@@ -42,15 +42,15 @@ tags:
### Configure Environment Variables
- When deploying LobeChat, you need to configure the following environment variables:
+ When deploying LobeHub, you need to configure the following environment variables:
- | Environment Variable | Type | Description |
- | -------------------------------- | -------- | ----------------------------------------------------------------------------- |
- | `AUTH_SECRET` | Required | Key used to encrypt session tokens. Generate using: `openssl rand -base64 32` |
- | `AUTH_SSO_PROVIDERS` | Required | SSO provider for LobeChat. Use `zitadel` for ZITADEL |
- | `AUTH_ZITADEL_ID` | Required | Client ID from ZITADEL application |
- | `AUTH_ZITADEL_SECRET` | Required | Client Secret from ZITADEL application |
- | `AUTH_ZITADEL_ISSUER` | Required | ZITADEL issuer URL (e.g., `https://your-instance.zitadel.cloud`) |
+ | Environment Variable | Type | Description |
+ | --------------------- | -------- | ----------------------------------------------------------------------------- |
+ | `AUTH_SECRET` | Required | Key used to encrypt session tokens. Generate using: `openssl rand -base64 32` |
+ | `AUTH_SSO_PROVIDERS` | Required | SSO provider for LobeHub. Use `zitadel` for ZITADEL |
+ | `AUTH_ZITADEL_ID` | Required | Client ID from ZITADEL application |
+ | `AUTH_ZITADEL_SECRET` | Required | Client Secret from ZITADEL application |
+ | `AUTH_ZITADEL_ISSUER` | Required | ZITADEL issuer URL (e.g., `https://your-instance.zitadel.cloud`) |
<Callout type={'info'}>
**Alternative Environment Variables**: For backward compatibility, the following aliases are also supported:
@@ -64,7 +64,7 @@ tags:
</Steps>
<Callout type={'info'}>
- After successful deployment, users will be able to authenticate with ZITADEL and use LobeChat.
+ After successful deployment, users will be able to authenticate with ZITADEL and use LobeHub.
</Callout>
## Related Resources
diff --git a/docs/self-hosting/advanced/auth/providers/zitadel.zh-CN.mdx b/docs/self-hosting/auth/providers/zitadel.zh-CN.mdx
similarity index 55%
rename from docs/self-hosting/advanced/auth/providers/zitadel.zh-CN.mdx
rename to docs/self-hosting/auth/providers/zitadel.zh-CN.mdx
index ce65d6dd2c3..d77a264543a 100644
--- a/docs/self-hosting/advanced/auth/providers/zitadel.zh-CN.mdx
+++ b/docs/self-hosting/auth/providers/zitadel.zh-CN.mdx
@@ -1,10 +1,10 @@
---
-title: 在 LobeChat 中配置 ZITADEL 身份验证
-description: 学习如何在 LobeChat 中配置 ZITADEL SSO,包括创建应用和设置环境变量。
+title: 在 LobeHub 中配置 ZITADEL 身份验证
+description: 学习如何在 LobeHub 中配置 ZITADEL SSO,包括创建应用和设置环境变量。
tags:
- ZITADEL
- 身份验证
- - LobeChat
+ - LobeHub
- 单点登录
- OIDC
---
@@ -21,7 +21,7 @@ tags:
3. 点击 **New** 创建新应用
4. 选择 **Web** 作为应用类型
5. 配置:
- - Name: `LobeChat`
+ - Name: `LobeHub`
- Authentication Method: `CODE`(用于机密客户端)
6. 添加重定向 URI:
@@ -40,15 +40,15 @@ tags:
### 配置环境变量
- 在部署 LobeChat 时,你需要配置以下环境变量:
+ 在部署 LobeHub 时,你需要配置以下环境变量:
- | 环境变量 | 类型 | 描述 |
- | -------------------------------- | -- | ------------------------------------------------------------ |
- | `AUTH_SECRET` | 必选 | 用于加密会话令牌的密钥。使用以下命令生成:`openssl rand -base64 32` |
- | `AUTH_SSO_PROVIDERS` | 必选 | SSO 提供商。使用 ZITADEL 请填写 `zitadel` |
- | `AUTH_ZITADEL_ID` | 必选 | ZITADEL 应用的 Client ID |
- | `AUTH_ZITADEL_SECRET` | 必选 | ZITADEL 应用的 Client Secret |
- | `AUTH_ZITADEL_ISSUER` | 必选 | ZITADEL Issuer URL(例如 `https://your-instance.zitadel.cloud`) |
+ | 环境变量 | 类型 | 描述 |
+ | --------------------- | -- | ------------------------------------------------------------ |
+ | `AUTH_SECRET` | 必选 | 用于加密会话令牌的密钥。使用以下命令生成:`openssl rand -base64 32` |
+ | `AUTH_SSO_PROVIDERS` | 必选 | SSO 提供商。使用 ZITADEL 请填写 `zitadel` |
+ | `AUTH_ZITADEL_ID` | 必选 | ZITADEL 应用的 Client ID |
+ | `AUTH_ZITADEL_SECRET` | 必选 | ZITADEL 应用的 Client Secret |
+ | `AUTH_ZITADEL_ISSUER` | 必选 | ZITADEL Issuer URL(例如 `https://your-instance.zitadel.cloud`) |
<Callout type={'info'}>
**兼容的环境变量**:为了向后兼容,以下别名也支持:
@@ -61,7 +61,7 @@ tags:
</Callout>
</Steps>
-<Callout type={'info'}>部署成功后,用户将可以通过 ZITADEL 身份认证并使用 LobeChat。</Callout>
+<Callout type={'info'}>部署成功后,用户将可以通过 ZITADEL 身份认证并使用 LobeHub。</Callout>
## 相关资源
diff --git a/docs/self-hosting/environment-variables.mdx b/docs/self-hosting/environment-variables.mdx
index fa63dc6665f..ee936fac1b8 100644
--- a/docs/self-hosting/environment-variables.mdx
+++ b/docs/self-hosting/environment-variables.mdx
@@ -57,7 +57,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
with:
- repository: lobehub/lobe-chat
+ repository: lobehub/lobehub
- name: Log in to the Container registry
uses: docker/login-action@v2
diff --git a/docs/self-hosting/environment-variables/redis.mdx b/docs/self-hosting/environment-variables/redis.mdx
index d9568112fff..a40af85287d 100644
--- a/docs/self-hosting/environment-variables/redis.mdx
+++ b/docs/self-hosting/environment-variables/redis.mdx
@@ -10,7 +10,7 @@ tags:
# Configure Redis Cache Service
-LobeChat uses Redis as a high-performance cache and session storage service. Configuring Redis can optimize authentication session management, file proxy caching, and more.
+LobeHub uses Redis as a high-performance cache and session storage service. Configuring Redis can optimize authentication session management, file proxy caching, and more.
## Core Environment Variables
diff --git a/docs/self-hosting/environment-variables/redis.zh-CN.mdx b/docs/self-hosting/environment-variables/redis.zh-CN.mdx
index 680ae6c0bfd..3c63709784b 100644
--- a/docs/self-hosting/environment-variables/redis.zh-CN.mdx
+++ b/docs/self-hosting/environment-variables/redis.zh-CN.mdx
@@ -10,7 +10,7 @@ tags:
# 配置 Redis 缓存服务
-LobeChat 使用 Redis 作为高性能缓存和会话存储服务。配置 Redis 可以优化认证会话管理、文件代理缓存等功能。
+LobeHub 使用 Redis 作为高性能缓存和会话存储服务。配置 Redis 可以优化认证会话管理、文件代理缓存等功能。
## 核心环境变量
diff --git a/docs/self-hosting/faq/no-v1-suffix.mdx b/docs/self-hosting/faq/no-v1-suffix.mdx
index 9b490b6d820..f92a253e3c9 100644
--- a/docs/self-hosting/faq/no-v1-suffix.mdx
+++ b/docs/self-hosting/faq/no-v1-suffix.mdx
@@ -21,8 +21,8 @@ Recheck and confirm whether `OPENAI_PROXY_URL` is set correctly, including wheth
### Related Discussion Links
-- [Why is the return value blank after configuring environment variables in Docker?](https://github.com/lobehub/lobe-chat/discussions/623)
-- [Reasons for errors when using third-party interfaces](https://github.com/lobehub/lobe-chat/discussions/734)
-- [No response when the proxy server address is filled in for chat](https://github.com/lobehub/lobe-chat/discussions/1065)
+- [Why is the return value blank after configuring environment variables in Docker?](https://github.com/lobehub/lobehub/discussions/623)
+- [Reasons for errors when using third-party interfaces](https://github.com/lobehub/lobehub/discussions/734)
+- [No response when the proxy server address is filled in for chat](https://github.com/lobehub/lobehub/discussions/1065)
If the problem still cannot be resolved, it is recommended to raise the issue in the community, providing relevant logs and configuration information for other developers or maintainers to offer assistance.
diff --git a/docs/self-hosting/faq/no-v1-suffix.zh-CN.mdx b/docs/self-hosting/faq/no-v1-suffix.zh-CN.mdx
index 6bfeed57f17..ee7c939e2ec 100644
--- a/docs/self-hosting/faq/no-v1-suffix.zh-CN.mdx
+++ b/docs/self-hosting/faq/no-v1-suffix.zh-CN.mdx
@@ -20,8 +20,8 @@ tags:
### 相关讨论链接
-- [Docker 安装,配置好环境变量后,为何返回值是空白?](https://github.com/lobehub/lobe-chat/discussions/623)
-- [使用第三方接口报错的原因](https://github.com/lobehub/lobe-chat/discussions/734)
-- [代理服务器地址填了聊天没任何反应](https://github.com/lobehub/lobe-chat/discussions/1065)
+- [Docker 安装,配置好环境变量后,为何返回值是空白?](https://github.com/lobehub/lobehub/discussions/623)
+- [使用第三方接口报错的原因](https://github.com/lobehub/lobehub/discussions/734)
+- [代理服务器地址填了聊天没任何反应](https://github.com/lobehub/lobehub/discussions/1065)
如果问题依旧无法解决,建议在社区中提出问题,附上相关日志和配置信息,以便其他开发者或维护者提供帮助。
diff --git a/docs/self-hosting/advanced/auth/clerk-to-betterauth.mdx b/docs/self-hosting/migration/v2/auth/clerk-to-betterauth.mdx
similarity index 95%
rename from docs/self-hosting/advanced/auth/clerk-to-betterauth.mdx
rename to docs/self-hosting/migration/v2/auth/clerk-to-betterauth.mdx
index 9fbddf4bf6d..41ea0386555 100644
--- a/docs/self-hosting/advanced/auth/clerk-to-betterauth.mdx
+++ b/docs/self-hosting/migration/v2/auth/clerk-to-betterauth.mdx
@@ -1,7 +1,7 @@
---
title: Migrating from Clerk to Better Auth
description: >-
- Guide for migrating your LobeChat deployment from Clerk authentication to
+ Guide for migrating your LobeHub deployment from Clerk authentication to
Better Auth, including simple and full migration options.
tags:
- Authentication Service
@@ -12,17 +12,17 @@ tags:
# Migrating from Clerk to Better Auth
-This guide helps you migrate your existing Clerk-based LobeChat deployment to Better Auth.
+This guide helps you migrate your existing Clerk-based LobeHub deployment to Better Auth.
<Callout type={'info'}>
- Better Auth is the recommended authentication solution for LobeChat. It offers simpler configuration, more SSO providers, and better self-hosting support.
+ Better Auth is the recommended authentication solution for LobeHub. It offers simpler configuration, more SSO providers, and better self-hosting support.
</Callout>
<Callout type={'error'}>
**Important Notice**:
- **Always backup your database first!** For Neon users, create a backup via [Fork Branch](https://neon.tech/docs/manage/branches#create-a-branch)
- - LobeChat is not responsible for any data loss or issues that may occur during the migration process
+ - LobeHub is not responsible for any data loss or issues that may occur during the migration process
- This guide is intended for users with development experience; not recommended for users without technical background
- If you have any questions, feel free to ask in our [Discord](https://discord.com/invite/AYFPHvv2jT) community or [GitHub Issue](https://github.com/lobehub/lobe-chat/issues/11707)
</Callout>
@@ -83,7 +83,7 @@ For small self-hosted deployments, the simplest approach is to let users reset t
See [Authentication Service Configuration](/docs/self-hosting/advanced/auth) for complete environment variables and SSO provider setup.
</Callout>
-3. **Redeploy LobeChat**
+3. **Redeploy LobeHub**
Deploy the new version with Better Auth enabled.
@@ -102,7 +102,7 @@ For small self-hosted deployments, the simplest approach is to let users reset t
- Log in using their previously linked social account (e.g., Google, GitHub)
- Click "Set Password" to receive an email and set a new password
- ![LobeChat Login Page - Social Login Hint](https://hub-apac-1.lobeobjects.space/docs/8d0563701fcd17ad7252a72b1746dd42.png)
+ ![LobeHub Login Page - Social Login Hint](https://hub-apac-1.lobeobjects.space/docs/8d0563701fcd17ad7252a72b1746dd42.png)
3. (Optional) After logging in, users can manage their account in the Profile page:
- Linked Accounts: Link additional social accounts
@@ -139,7 +139,7 @@ For larger deployments or when you need to preserve user passwords and SSO conne
**Preparation:**
-1. Clone the LobeChat repository and install dependencies:
+1. Clone the LobeHub repository and install dependencies:
```bash
git clone https://github.com/lobehub/lobe-chat.git
diff --git a/docs/self-hosting/advanced/auth/clerk-to-betterauth.zh-CN.mdx b/docs/self-hosting/migration/v2/auth/clerk-to-betterauth.zh-CN.mdx
similarity index 95%
rename from docs/self-hosting/advanced/auth/clerk-to-betterauth.zh-CN.mdx
rename to docs/self-hosting/migration/v2/auth/clerk-to-betterauth.zh-CN.mdx
index 8479729a649..46664c25bfd 100644
--- a/docs/self-hosting/advanced/auth/clerk-to-betterauth.zh-CN.mdx
+++ b/docs/self-hosting/migration/v2/auth/clerk-to-betterauth.zh-CN.mdx
@@ -1,6 +1,6 @@
---
title: 从 Clerk 迁移到 Better Auth
-description: 将 LobeChat 部署从 Clerk 身份验证迁移到 Better Auth 的指南,包括简单迁移和完整迁移选项。
+description: 将 LobeHub 部署从 Clerk 身份验证迁移到 Better Auth 的指南,包括简单迁移和完整迁移选项。
tags:
- 身份验证服务
- Better Auth
@@ -10,17 +10,17 @@ tags:
# 从 Clerk 迁移到 Better Auth
-本指南帮助您将现有的基于 Clerk 的 LobeChat 部署迁移到 Better Auth。
+本指南帮助您将现有的基于 Clerk 的 LobeHub 部署迁移到 Better Auth。
<Callout type={'info'}>
- Better Auth 是 LobeChat 推荐的身份验证解决方案。它提供更简单的配置、更多的 SSO 提供商支持,以及更好的自托管体验。
+ Better Auth 是 LobeHub 推荐的身份验证解决方案。它提供更简单的配置、更多的 SSO 提供商支持,以及更好的自托管体验。
</Callout>
<Callout type={'error'}>
**重要提醒**:
- **务必先备份数据库**!如使用 Neon,可通过 [Fork 分支](https://neon.tech/docs/manage/branches#create-a-branch) 创建备份
- - 迁移过程中可能出现的任何数据丢失或问题,LobeChat 概不负责
+ - 迁移过程中可能出现的任何数据丢失或问题,LobeHub 概不负责
- 本指南适合有一定开发背景的用户,不建议无技术经验的用户自行操作
- 如有任何疑问,欢迎到 [Discord](https://discord.com/invite/AYFPHvv2jT) 社区或 [GitHub Issue](https://github.com/lobehub/lobe-chat/issues/11707) 提问
</Callout>
@@ -81,7 +81,7 @@ tags:
查阅 [身份验证服务配置](/zh/docs/self-hosting/advanced/auth) 了解完整的环境变量和 SSO 提供商配置。
</Callout>
-3. **重新部署 LobeChat**
+3. **重新部署 LobeHub**
部署启用 Better Auth 的新版本。
@@ -99,7 +99,7 @@ tags:
- 使用之前关联的社交账号(如 Google、GitHub)登录
- 点击「设置密码」链接,通过邮件设置新密码后登录
- ![LobeChat 登录页面 - 社交账号登录提示](https://hub-apac-1.lobeobjects.space/docs/8d0563701fcd17ad7252a72b1746dd42.png)
+ ![LobeHub 登录页面 - 社交账号登录提示](https://hub-apac-1.lobeobjects.space/docs/8d0563701fcd17ad7252a72b1746dd42.png)
3. (可选)登录后可在个人资料页进行以下操作:
- 已关联账号:手动关联其他社交账号
@@ -134,7 +134,7 @@ tags:
**准备工作:**
-1. Clone LobeChat 仓库并安装依赖:
+1. Clone LobeHub 仓库并安装依赖:
```bash
git clone https://github.com/lobehub/lobe-chat.git
diff --git a/docs/self-hosting/advanced/auth/migration-internals.mdx b/docs/self-hosting/migration/v2/auth/migration-internals.mdx
similarity index 97%
rename from docs/self-hosting/advanced/auth/migration-internals.mdx
rename to docs/self-hosting/migration/v2/auth/migration-internals.mdx
index 96f46000a03..f88efdc74a9 100644
--- a/docs/self-hosting/advanced/auth/migration-internals.mdx
+++ b/docs/self-hosting/migration/v2/auth/migration-internals.mdx
@@ -1,7 +1,7 @@
---
title: Understanding Auth Migration - Technical Deep Dive
description: >-
- Technical explanation of how authentication migration works in LobeChat,
+ Technical explanation of how authentication migration works in LobeHub,
including database schema, migration principles, and troubleshooting guide.
tags:
- Authentication
@@ -12,7 +12,7 @@ tags:
# Understanding Auth Migration
-This document explains the technical principles behind authentication migration in LobeChat. It's intended for users with database and development experience who want to understand how migration works under the hood.
+This document explains the technical principles behind authentication migration in LobeHub. It's intended for users with database and development experience who want to understand how migration works under the hood.
<Callout type={'info'}>
For step-by-step migration instructions, see [NextAuth Migration](/docs/self-hosting/advanced/auth/nextauth-to-betterauth) or [Clerk Migration](/docs/self-hosting/advanced/auth/clerk-to-betterauth).
diff --git a/docs/self-hosting/advanced/auth/migration-internals.zh-CN.mdx b/docs/self-hosting/migration/v2/auth/migration-internals.zh-CN.mdx
similarity index 96%
rename from docs/self-hosting/advanced/auth/migration-internals.zh-CN.mdx
rename to docs/self-hosting/migration/v2/auth/migration-internals.zh-CN.mdx
index ee6a1967c3d..580d7e2cc4b 100644
--- a/docs/self-hosting/advanced/auth/migration-internals.zh-CN.mdx
+++ b/docs/self-hosting/migration/v2/auth/migration-internals.zh-CN.mdx
@@ -1,7 +1,7 @@
---
title: 认证迁移原理 - 技术深入解析
description: >-
- LobeChat 认证迁移的技术原理解析,包括数据库 Schema、迁移原理和问题排查指南。
+ LobeHub 认证迁移的技术原理解析,包括数据库 Schema、迁移原理和问题排查指南。
tags:
- 认证
- 迁移
@@ -11,7 +11,7 @@ tags:
# 认证迁移原理
-本文档解释 LobeChat 认证迁移的技术原理,适合有数据库和开发经验的用户,帮助理解迁移的底层逻辑。
+本文档解释 LobeHub 认证迁移的技术原理,适合有数据库和开发经验的用户,帮助理解迁移的底层逻辑。
<Callout type={'info'}>
如需分步迁移指南,请参阅 [NextAuth 迁移](/docs/self-hosting/advanced/auth/nextauth-to-betterauth) 或 [Clerk 迁移](/docs/self-hosting/advanced/auth/clerk-to-betterauth)。
diff --git a/docs/self-hosting/advanced/auth/nextauth-to-betterauth.mdx b/docs/self-hosting/migration/v2/auth/nextauth-to-betterauth.mdx
similarity index 92%
rename from docs/self-hosting/advanced/auth/nextauth-to-betterauth.mdx
rename to docs/self-hosting/migration/v2/auth/nextauth-to-betterauth.mdx
index 5753c2120e5..631aafb01b2 100644
--- a/docs/self-hosting/advanced/auth/nextauth-to-betterauth.mdx
+++ b/docs/self-hosting/migration/v2/auth/nextauth-to-betterauth.mdx
@@ -1,7 +1,7 @@
---
title: Migrating from NextAuth to Better Auth
description: >-
- Guide for migrating your LobeChat deployment from NextAuth authentication to
+ Guide for migrating your LobeHub deployment from NextAuth authentication to
Better Auth, including simple and full migration options.
tags:
- Authentication Service
@@ -12,17 +12,17 @@ tags:
# Migrating from NextAuth to Better Auth
-This guide helps you migrate your existing NextAuth-based LobeChat deployment to Better Auth.
+This guide helps you migrate your existing NextAuth-based LobeHub deployment to Better Auth.
<Callout type={'info'}>
- Better Auth is the recommended authentication solution for LobeChat. It offers simpler configuration, more SSO providers, and better self-hosting support.
+ Better Auth is the recommended authentication solution for LobeHub. It offers simpler configuration, more SSO providers, and better self-hosting support.
</Callout>
<Callout type={'error'}>
**Important Notice**:
- **Always backup your database first!** For Neon users, create a backup via [Fork Branch](https://neon.tech/docs/manage/branches#create-a-branch)
- - LobeChat is not responsible for any data loss or issues that may occur during the migration process
+ - LobeHub is not responsible for any data loss or issues that may occur during the migration process
- This guide is intended for users with development experience; not recommended for users without technical background
- If you have any questions, feel free to ask in our [Discord](https://discord.com/invite/AYFPHvv2jT) community or [GitHub Issue](https://github.com/lobehub/lobe-chat/issues)
</Callout>
@@ -136,7 +136,7 @@ For small self-hosted deployments, the simplest approach is to let users re-logi
See [Authentication Service Configuration](/docs/self-hosting/advanced/auth) for complete environment variables and SSO provider setup.
</Callout>
-2. **Redeploy LobeChat**
+2. **Redeploy LobeHub**
Deploy the new version with Better Auth enabled.
@@ -172,7 +172,7 @@ For larger deployments or when you need to preserve SSO connections, use the mig
**Preparation:**
-1. Clone the LobeChat repository and install dependencies:
+1. Clone the LobeHub repository and install dependencies:
```bash
git clone https://github.com/lobehub/lobe-chat.git
@@ -337,7 +337,7 @@ This error occurs because the database schema is outdated. Run `pnpm db:migrate`
### email\_not\_found error
-If you see a redirect to `signin?callbackUrl=...&error=email_not_found`, it means LobeChat cannot get the user's email.
+If you see a redirect to `signin?callbackUrl=...&error=email_not_found`, it means LobeHub cannot get the user's email.
<Callout type={'warning'}>
**Important**: Better Auth currently **requires user email** for authentication. All SSO providers must be configured to return email information, otherwise users cannot log in.
@@ -347,23 +347,23 @@ Common causes:
**Cause 1: SSO connection not requesting email permission**
-When configuring SSO connections (e.g., GitHub in Auth0), make sure to enable **Email Address** permission in the Attributes section. LobeChat requires user email for authentication.
+When configuring SSO connections (e.g., GitHub in Auth0), make sure to enable **Email Address** permission in the Attributes section. LobeHub requires user email for authentication.
**Cause 2: User email not configured in identity provider**
For identity providers like Casdoor or Logto, users may not have an email configured.
<Callout type={'warning'}>
- **Note for Casdoor Users**: Casdoor does not require users to have an email configured, but LobeChat strongly depends on email for authentication. If you find migration difficult due to many users without email addresses, we recommend staying on [v2.0.0-next.344](https://github.com/lobehub/lobe-chat/releases/tag/v2.0.0-next.344) for now. We plan to provide a self-service migration feature in the future, where users without email will be redirected to a bind-email page when they log in.
+ **Note for Casdoor Users**: Casdoor does not require users to have an email configured, but LobeHub strongly depends on email for authentication. If you find migration difficult due to many users without email addresses, we recommend staying on [v2.0.0-next.344](https://github.com/lobehub/lobe-chat/releases/tag/v2.0.0-next.344) for now. We plan to provide a self-service migration feature in the future, where users without email will be redirected to a bind-email page when they log in.
</Callout>
Solution:
-1. First configure the Webhook in LobeChat to sync user data from the identity provider:
+1. First configure the Webhook in LobeHub to sync user data from the identity provider:
- [Casdoor Webhook Configuration](/docs/self-hosting/advanced/auth/providers/casdoor)
- [Logto Webhook Configuration](/docs/self-hosting/advanced/auth/providers/logto)
2. Then configure the user's email in the identity provider's admin console
-3. The user data will be synced to LobeChat via Webhook, and the user can then log in
+3. The user data will be synced to LobeHub via Webhook, and the user can then log in
## Related Reading
diff --git a/docs/self-hosting/advanced/auth/nextauth-to-betterauth.zh-CN.mdx b/docs/self-hosting/migration/v2/auth/nextauth-to-betterauth.zh-CN.mdx
similarity index 92%
rename from docs/self-hosting/advanced/auth/nextauth-to-betterauth.zh-CN.mdx
rename to docs/self-hosting/migration/v2/auth/nextauth-to-betterauth.zh-CN.mdx
index 07a37fa6c55..359db43ab88 100644
--- a/docs/self-hosting/advanced/auth/nextauth-to-betterauth.zh-CN.mdx
+++ b/docs/self-hosting/migration/v2/auth/nextauth-to-betterauth.zh-CN.mdx
@@ -1,6 +1,6 @@
---
title: 从 NextAuth 迁移到 Better Auth
-description: 将 LobeChat 部署从 NextAuth 身份验证迁移到 Better Auth 的指南,包括简单迁移和完整迁移选项。
+description: 将 LobeHub 部署从 NextAuth 身份验证迁移到 Better Auth 的指南,包括简单迁移和完整迁移选项。
tags:
- 身份验证服务
- Better Auth
@@ -10,17 +10,17 @@ tags:
# 从 NextAuth 迁移到 Better Auth
-本指南帮助您将现有的基于 NextAuth 的 LobeChat 部署迁移到 Better Auth。
+本指南帮助您将现有的基于 NextAuth 的 LobeHub 部署迁移到 Better Auth。
<Callout type={'info'}>
- Better Auth 是 LobeChat 推荐的身份验证解决方案。它提供更简单的配置、更多的 SSO 提供商支持,以及更好的自托管体验。
+ Better Auth 是 LobeHub 推荐的身份验证解决方案。它提供更简单的配置、更多的 SSO 提供商支持,以及更好的自托管体验。
</Callout>
<Callout type={'error'}>
**重要提醒**:
- **务必先备份数据库**!如使用 Neon,可通过 [Fork 分支](https://neon.tech/docs/manage/branches#create-a-branch) 创建备份
- - 迁移过程中可能出现的任何数据丢失或问题,LobeChat 概不负责
+ - 迁移过程中可能出现的任何数据丢失或问题,LobeHub 概不负责
- 本指南适合有一定开发背景的用户,不建议无技术经验的用户自行操作
- 如有任何疑问,欢迎到 [Discord](https://discord.com/invite/AYFPHvv2jT) 社区或 [GitHub Issue](https://github.com/lobehub/lobe-chat/issues) 提问
</Callout>
@@ -131,7 +131,7 @@ Better Auth 支持更多功能,以下是新增的环境变量:
查阅 [身份验证服务配置](/zh/docs/self-hosting/advanced/auth) 了解完整的环境变量和 SSO 提供商配置。
</Callout>
-2. **重新部署 LobeChat**
+2. **重新部署 LobeHub**
部署启用 Better Auth 的新版本。
@@ -167,7 +167,7 @@ Better Auth 支持更多功能,以下是新增的环境变量:
**准备工作:**
-1. Clone LobeChat 仓库并安装依赖:
+1. Clone LobeHub 仓库并安装依赖:
```bash
git clone https://github.com/lobehub/lobe-chat.git
@@ -331,7 +331,7 @@ npx tsx scripts/nextauth-to-betterauth/verify.ts
### email\_not\_found 错误
-如果登录时跳转到 `signin?callbackUrl=...&error=email_not_found`,说明 LobeChat 无法获取用户邮箱。
+如果登录时跳转到 `signin?callbackUrl=...&error=email_not_found`,说明 LobeHub 无法获取用户邮箱。
<Callout type={'warning'}>
**重要提示**:Better Auth 目前**强依赖用户邮箱**进行身份认证。所有 SSO 提供商必须配置为返回邮箱信息,否则用户无法登录。
@@ -341,23 +341,23 @@ npx tsx scripts/nextauth-to-betterauth/verify.ts
**原因 1:SSO 连接未请求邮箱权限**
-配置 SSO 连接时(如 Auth0 中的 GitHub 连接),务必在 **Attributes** 部分勾选 **Email Address** 权限。LobeChat 需要用户邮箱进行身份认证。
+配置 SSO 连接时(如 Auth0 中的 GitHub 连接),务必在 **Attributes** 部分勾选 **Email Address** 权限。LobeHub 需要用户邮箱进行身份认证。
**原因 2:用户在身份提供商中未配置邮箱**
对于 Casdoor、Logto 等身份提供商,用户可能没有配置邮箱。
<Callout type={'warning'}>
- **Casdoor 用户注意**:Casdoor 不要求用户必须配置邮箱,但 LobeChat 强依赖邮箱进行身份认证。如果因为大量用户没有邮箱而感觉迁移困难,建议暂时停留在 [v2.0.0-next.344](https://github.com/lobehub/lobe-chat/releases/tag/v2.0.0-next.344) 版本。后续官方计划提供用户端自助迁移功能,届时没有邮箱的用户登录时会被重定向到绑定邮箱页面。
+ **Casdoor 用户注意**:Casdoor 不要求用户必须配置邮箱,但 LobeHub 强依赖邮箱进行身份认证。如果因为大量用户没有邮箱而感觉迁移困难,建议暂时停留在 [v2.0.0-next.344](https://github.com/lobehub/lobe-chat/releases/tag/v2.0.0-next.344) 版本。后续官方计划提供用户端自助迁移功能,届时没有邮箱的用户登录时会被重定向到绑定邮箱页面。
</Callout>
解决方案:
-1. 先在 LobeChat 中配置身份提供商的 Webhook 以同步用户数据:
+1. 先在 LobeHub 中配置身份提供商的 Webhook 以同步用户数据:
- [Casdoor Webhook 配置](/zh/docs/self-hosting/advanced/auth/providers/casdoor)
- [Logto Webhook 配置](/zh/docs/self-hosting/advanced/auth/providers/logto)
2. 然后在身份提供商的管理后台为用户配置邮箱
-3. 用户数据通过 Webhook 同步到 LobeChat 后即可正常登录
+3. 用户数据通过 Webhook 同步到 LobeHub 后即可正常登录
## 相关阅读
diff --git a/docs/self-hosting/migration/v2/breaking-changes.mdx b/docs/self-hosting/migration/v2/breaking-changes.mdx
index e4156f317f8..b6c6b1dbc8b 100644
--- a/docs/self-hosting/migration/v2/breaking-changes.mdx
+++ b/docs/self-hosting/migration/v2/breaking-changes.mdx
@@ -78,4 +78,4 @@ LobeHub 2.0 recommends using **PostgreSQL 17** or higher.
This is because LobeHub 2.0 uses the [pg\_search](https://github.com/paradedb/paradedb/tree/main/pg_search) extension for full-text search capabilities. If you use Serverless Postgres services like Neon, the pg\_search extension is only available on PostgreSQL 17.
-If you self-host your database with Docker, we recommend using the `pgvector/pgvector:pg17` image.
+If you self-host your database with Docker, we recommend using the `paradedb/paradedb:latest-pg17` image.
diff --git a/docs/self-hosting/migration/v2/breaking-changes.zh-CN.mdx b/docs/self-hosting/migration/v2/breaking-changes.zh-CN.mdx
index 5baabb1127d..77b8969504a 100644
--- a/docs/self-hosting/migration/v2/breaking-changes.zh-CN.mdx
+++ b/docs/self-hosting/migration/v2/breaking-changes.zh-CN.mdx
@@ -76,4 +76,4 @@ LobeHub 2.0 推荐使用 **PostgreSQL 17** 及以上版本。
这是因为 LobeHub 2.0 使用了 [pg\_search](https://github.com/paradedb/paradedb/tree/main/pg_search) 插件来提供全文搜索能力。如果您使用 Neon 等 Serverless Postgres 服务,pg\_search 插件仅在 PostgreSQL 17 上可用。
-如果您使用 Docker 自建数据库,推荐使用 `pgvector/pgvector:pg17` 镜像。
+如果您使用 Docker 自建数据库,推荐使用 `paradedb/paradedb:latest-pg17` 镜像。
diff --git a/docs/self-hosting/platform/docker-compose.zh-CN.mdx b/docs/self-hosting/platform/docker-compose.zh-CN.mdx
index 072941572f8..cf456829f09 100644
--- a/docs/self-hosting/platform/docker-compose.zh-CN.mdx
+++ b/docs/self-hosting/platform/docker-compose.zh-CN.mdx
@@ -8,7 +8,7 @@ tags:
- 部署指引
---
-# 使用 Docker Compose 部署 LobeHub 服务端数据库版本
+# 使用 Docker Compose 部署 LobeHub
<div style={{display:"flex", gap: 4}}>
[![][docker-release-shield]][docker-release-link]
@@ -254,13 +254,13 @@ mv .env.zh-CN.example .env
### 预备知识
-一般来讲,想要完整的运行 LobeHub 数据库版本,你需要至少拥有如下三个服务:
+一般来讲,想要完整的运行 LobeHub,你需要至少拥有如下三个服务:
-- LobeHub 数据库版本自身
+- LobeHub 自身
- 带有 PGVector 插件的 PostgreSQL 数据库
- 支持 S3 协议的对象存储服务
-这些服务可以通过自建或者在线云服务组合搭配,以满足不同层次的部署需求。本文中,我们提供了完全基于开源自建服务的 Docker Compose 配置,你可以直接使用这份配置文件来启动 LobeHub 数据库版本,也可以对之进行修改以适应你的需求。
+这些服务可以通过自建或者在线云服务组合搭配,以满足不同层次的部署需求。本文中,我们提供了完全基于开源自建服务的 Docker Compose 配置,你可以直接使用这份配置文件来启动 LobeHub,也可以对之进行修改以适应你的需求。
我们默认使用 [RustFS](https://github.com/rustfs/rustfs) 作为本地 S3 对象存储服务。如需配置 SSO 登录鉴权服务,请参考 [身份验证服务](/zh/docs/self-hosting/advanced/auth) 文档。
diff --git a/docs/self-hosting/platform/docker.mdx b/docs/self-hosting/platform/docker.mdx
index ad1717c3318..9c561fa6504 100644
--- a/docs/self-hosting/platform/docker.mdx
+++ b/docs/self-hosting/platform/docker.mdx
@@ -35,19 +35,19 @@ Here is the process for deploying the LobeHub server database version on a Linux
<Steps>
### Create a Postgres Database Instance
- Please create a Postgres database instance with the PGVector plugin according to your needs, for example:
+ Please create a Postgres database instance according to your needs, for example:
```sh
docker network create pg
- docker run --name my-postgres --network pg -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 -d pgvector/pgvector:pg17
+ docker run --name my-postgres --network pg -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 -d paradedb/paradedb:latest-pg17
```
- The above command will create a PG instance named `my-postgres` on the network `pg`, where `pgvector/pgvector:pg17` is a Postgres 17 image with the pgvector plugin installed by default.
+ The above command will create a PG instance named `my-postgres` on the network `pg`, where `paradedb/paradedb:latest-pg17` is a Postgres 17 image with pgvector and pg\_search plugins installed by default.
<Callout type="info">
- The pgvector plugin provides vector search capabilities for Postgres, which is an important
- component for LobeHub to implement RAG.
+ The ParadeDB image includes pgvector (vector search) and pg\_search (full-text search) plugins, which are important
+ components for LobeHub to implement RAG and knowledge base search.
</Callout>
<Callout type="warning">
diff --git a/docs/self-hosting/platform/docker.zh-CN.mdx b/docs/self-hosting/platform/docker.zh-CN.mdx
index 925bcd89c59..1258bac7e5c 100644
--- a/docs/self-hosting/platform/docker.zh-CN.mdx
+++ b/docs/self-hosting/platform/docker.zh-CN.mdx
@@ -8,7 +8,7 @@ tags:
- Postgres
---
-# 使用 Docker 部署服务端数据库版
+# 使用 Docker 部署 LobeHub
<div style={{display:"flex", gap: 4}}>
[![][docker-release-shield]][docker-release-link]
@@ -19,32 +19,32 @@ tags:
</div>
<Callout type="info">
- 本文已经假定你了解了 LobeHub 服务端数据库版本(下简称 DB
- 版)的部署基本原理和流程,因此只包含核心环境变量配置的内容。如果你还不了解 LobeHub DB
- 版的部署原理,请先查阅 [使用服务端数据库部署](/zh/docs/self-hosting/server-database) 。
+ 本文已经假定你了解了 LobeHub
+ 的部署基本原理和流程,因此只包含核心环境变量配置的内容。如果你还不了解 LobeHub
+ 的部署原理,请先查阅 [使用服务端数据库部署](/zh/docs/self-hosting/server-database) 。
此外,针对国内的腾讯云储存桶用户,可查询[配置腾讯云 COS
存储服务](/zh/docs/self-hosting/advanced/s3/tencent-cloud)。
</Callout>
## 在 Linux 服务器上部署
-以下是在 Linux 服务器上部署 LobeHub DB 版的流程:
+以下是在 Linux 服务器上部署 LobeHub 的流程:
<Steps>
### 创建 Postgres 数据库实例
- 请按照你自己的诉求创建一个带有 PGVector 插件的 Postgres 数据库实例,例如:
+ 请按照你自己的诉求创建一个 Postgres 数据库实例,例如:
```sh
docker network create pg
- docker run --name my-postgres --network pg -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 -d pgvector/pgvector:pg17
+ docker run --name my-postgres --network pg -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 -d paradedb/paradedb:latest-pg17
```
- 上述指令会创建一个名为 `my-postgres`,并且网络为 `pg` 的 PG 实例,其中 `pgvector/pgvector:pg17` 是一个 Postgres 17 的镜像,且默认安装了 pgvector 插件。
+ 上述指令会创建一个名为 `my-postgres`,并且网络为 `pg` 的 PG 实例,其中 `paradedb/paradedb:latest-pg17` 是一个 Postgres 17 的镜像,且默认安装了 pgvector 和 pg\_search 插件。
<Callout type="info">
- pgvector 插件为 Postgres 提供了向量搜索的能力,是 LobeHub 实现 RAG 的重要构件之一。
+ ParadeDB 镜像包含了 pgvector(向量搜索)和 pg\_search(全文搜索)插件,是 LobeHub 实现 RAG 和知识库搜索的重要构件。
</Callout>
<Callout type="warning">
@@ -125,7 +125,7 @@ tags:
## 在本地(Mac / Windows) 上使用
-LobeHub 的 DB 版也支持直接在本地的 Mac/Windows 本地使用。
+LobeHub 也支持直接在本地的 Mac/Windows 本地使用。
在此我们已假设你的本地有一个 5432 端口可用,账号为 `postgres` ,密码是 `mysecretpassword` 的 pg 实例,它在 `localhost:5432` 可用。
diff --git a/docs/self-hosting/platform/dokploy.mdx b/docs/self-hosting/platform/dokploy.mdx
index 1699fa7071f..581ca9ce51d 100644
--- a/docs/self-hosting/platform/dokploy.mdx
+++ b/docs/self-hosting/platform/dokploy.mdx
@@ -67,7 +67,7 @@ You also need to configure the `JWKS_KEY` environment variable for signing and v
## 2. Deploying the database on Dokploy
-Enter the previously created Project, click on Create Service, and select Database. In the Database interface, choose PostgreSQL, then set the database name, user, and password. In the Docker image field, enter `pgvector/pgvector:pg17`, and finally click Create to create the database.
+Enter the previously created Project, click on Create Service, and select Database. In the Database interface, choose PostgreSQL, then set the database name, user, and password. In the Docker image field, enter `paradedb/paradedb:latest-pg17`, and finally click Create to create the database.
![](/blog/assets7006b60baaf62aa0d95cd40456e24afe.webp)
diff --git a/docs/self-hosting/platform/dokploy.zh-CN.mdx b/docs/self-hosting/platform/dokploy.zh-CN.mdx
index 3a81423d302..01380ff2ae0 100644
--- a/docs/self-hosting/platform/dokploy.zh-CN.mdx
+++ b/docs/self-hosting/platform/dokploy.zh-CN.mdx
@@ -1,6 +1,6 @@
---
-title: 在 Dokploy 上部署 LobeHub 的服务端数据库版本
-description: 本文详细介绍如何在 Dokploy 中部署服务端数据库版 LobeHub,包括数据库配置、身份验证服务配置的设置步骤。
+title: 在 Dokploy 上部署 LobeHub
+description: 本文详细介绍如何在 Dokploy 中部署 LobeHub,包括数据库配置、身份验证服务配置的设置步骤。
tags:
- 服务端数据库
- Postgres
@@ -11,9 +11,9 @@ tags:
- 环境变量配置
---
-# 在 Dokploy 上部署服务端数据库版
+# 在 Dokploy 上部署 LobeHub
-本文将详细介绍如何在 Dokploy 中部署服务端数据库版 LobeHub。
+本文将详细介绍如何在 Dokploy 中部署 LobeHub。
## 一、准备工作
@@ -68,7 +68,7 @@ S3_ENABLE_PATH_STYLE=
## 二、在 Dokploy 上部署数据库
-进入前面创建的 Project,点击 Create Service 选择 Database,在 Database 界面选择 PostgreSQL ,然后设置数据库名、用户、密码,在 Docker image 中填入 `pgvector/pgvector:pg17` 最后点击 Create 创建数据库。
+进入前面创建的 Project,点击 Create Service 选择 Database,在 Database 界面选择 PostgreSQL ,然后设置数据库名、用户、密码,在 Docker image 中填入 `paradedb/paradedb:latest-pg17` 最后点击 Create 创建数据库。
![](/blog/assets7006b60baaf62aa0d95cd40456e24afe.webp)
diff --git a/docs/self-hosting/platform/sealos.mdx b/docs/self-hosting/platform/sealos.mdx
index 5bf6e8a9ce2..d487a3a0bb7 100644
--- a/docs/self-hosting/platform/sealos.mdx
+++ b/docs/self-hosting/platform/sealos.mdx
@@ -1,5 +1,5 @@
---
-title: Deploy Lobe Chat Database Version on Sealos
+title: Deploy LobeHub Database Version on Sealos
description: >-
Learn how to deploy LobeHub on Sealos with ease. Follow the provided steps to
set up LobeHub and start using it efficiently.
@@ -10,7 +10,7 @@ tags:
- Custom Domain Binding
---
-# Deploying Lobe Chat Database Version on Sealos
+# Deploying LobeHub Database Version on Sealos
<Callout type="info">
This article assumes that you are familiar with the basic principles and processes of deploying
@@ -25,9 +25,9 @@ The application on Sealos includes 4 services:
- Logto for authrization(need to deploy separately).
- PostgreSQL with Vector plugin for data storage and indexing.
- One object storage Bucket.
-- Lobe Chat database version.
+- LobeHub database version.
-Here is the process for deploying the Lobe Chat server database version on Sealos:
+Here is the process for deploying the LobeHub server database version on Sealos:
## Pre-Deployment Setup
@@ -53,17 +53,17 @@ Select `Next.js (App Router)` as the framework, then click the `Start building`
![Logto create application page](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-create-application.png)
-**Step 4**:In the pop-up window, fill in the application name as `Lobe Chat`, then click the `Create application` button. Next, do not fill in anything, just click the bottom `Finish and done` button to create it.
+**Step 4**:In the pop-up window, fill in the application name as `LobeHub`, then click the `Create application` button. Next, do not fill in anything, just click the bottom `Finish and done` button to create it.
![Logto create application done page](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-create-application-done.png)
-**Step 5**:In the `Lobe Chat` application, find the following three parameters, which will be used later when deploying the Lobe Chat database version.
+**Step 5**:In the `LobeHub` application, find the following three parameters, which will be used later when deploying the LobeHub database version.
![Logto application detail page](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-app-detail.png)
-## Deploy Lobe Chat Database Version
+## Deploy LobeHub Database Version
-**Step 1**:Click the button below to visit the Lobe Chat database version application deployment page:
+**Step 1**:Click the button below to visit the LobeHub database version application deployment page:
[![](https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg)](https://template.usw.sealos.io/deploy?templateName=lobe-chat-db)
@@ -75,13 +75,13 @@ Fill in the following three required parameters:
**Step 2**:Click the `Deploy App` button, after the deployment is complete, wait for all the components of the application to be in the "Running" state, click the application's "Details" button to enter the application details page.
-![Lobe Chat database version deployment done page](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/lobe-chat-db-deployment-done-en.png)
+![LobeHub database version deployment done page](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/lobe-chat-db-deployment-done-en.png)
**Step 3**:Find the public address, copy it, and use it later.
## Post-Deployment Configuration
-**Step 1**:Enter the `Applications` page of Logto, find the `Lobe Chat` application, click to enter the application details page.
+**Step 1**:Enter the `Applications` page of Logto, find the `LobeHub` application, click to enter the application details page.
**Step 2**:In the `Settings` page, find the `Redirect URI` and `Post sign-out redirect URI` parameters, fill in the following values:
@@ -90,8 +90,8 @@ Fill in the following three required parameters:
**Step 3**:Click the `Save changes` button to save the configuration.
-**Step 4**:Now, access the Lobe Chat database version through `https://<lobe-chat-db-public-address>`, click the avatar in the upper left corner, and then click the \[Log in / Sign up] button.
+**Step 4**:Now, access the LobeHub database version through `https://<lobe-chat-db-public-address>`, click the avatar in the upper left corner, and then click the \[Log in / Sign up] button.
**Step 5**:Next, you will be redirected to the Logto login page, click the \[Create account] button to register an account.
-**Step 6**:After registration, you can use Logto to login to the Lobe Chat database version.
+**Step 6**:After registration, you can use Logto to login to the LobeHub database version.
diff --git a/docs/self-hosting/platform/sealos.zh-CN.mdx b/docs/self-hosting/platform/sealos.zh-CN.mdx
index 95901922dc9..bf54c2d42f2 100644
--- a/docs/self-hosting/platform/sealos.zh-CN.mdx
+++ b/docs/self-hosting/platform/sealos.zh-CN.mdx
@@ -12,19 +12,19 @@ tags:
# 使用 Sealos 部署 LobeHub 数据库版
<Callout type="info">
- 本文假设你已经熟悉 Lobe Chat
- 服务器数据库版的部署基本原理和流程,因此只包含与核心环境变量配置相关的内容。如果你对 Lobe Chat
+ 本文假设你已经熟悉 LobeHub
+ 服务器数据库版的部署基本原理和流程,因此只包含与核心环境变量配置相关的内容。如果你对 LobeHub
服务器数据库版的部署原理不熟悉,请先参考[部署服务器数据库](/zh/docs/self-hosting/server-database)。
</Callout>
-在 Sealos 的 Lobe Chat 数据库版应用中总共包含有以下四个服务:
+在 Sealos 的 LobeHub 数据库版应用中总共包含有以下四个服务:
- Logto 提供身份校验(需额外部署)
- 带有 Vector 插件的 PostgreSQL 来做数据存储和向量化
- 一个对象存储 Bucket
- LobeHub Database 的实例
-这里是在 Sealos 上部署 Lobe Chat 服务器数据库版的流程:
+这里是在 Sealos 上部署 LobeHub 服务器数据库版的流程:
## 预部署配置
@@ -57,18 +57,18 @@ tags:
![Logto 创建应用页面](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-create-application.png)
- 在弹窗中填写应用的名称为 `Lobe Chat`,然后点击 `Create application` 按钮。接下来啥也不用填,直接点击底部的 `Finish and done` 按钮就创建完成了。
+ 在弹窗中填写应用的名称为 `LobeHub`,然后点击 `Create application` 按钮。接下来啥也不用填,直接点击底部的 `Finish and done` 按钮就创建完成了。
![Logto 创建应用完成页面](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-create-application-done.png)
- 在 `Lobe Chat` 应用中找到以下三个参数,后面部署 Lobe Chat 数据库版时需要用到。
+ 在 `LobeHub` 应用中找到以下三个参数,后面部署 LobeHub 数据库版时需要用到。
![Logto 应用详情页面](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-app-detail.png)
</Steps>
-## 部署 Lobe Chat 数据库版
+## 部署 LobeHub 数据库版
-点击下方按钮访问 Lobe Chat 数据库版应用部署页面:
+点击下方按钮访问 LobeHub 数据库版应用部署页面:
[![](https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg)](https://template.hzh.sealos.run/deploy?templateName=lobe-chat-db)
@@ -80,33 +80,33 @@ tags:
点击【部署】按钮,部署完成后,等待应用的所有组件状态都变成 “运行中”,点击应用的【详情】按钮,进入应用详情页面。
-![Lobe Chat 数据库版部署完成页面](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/lobe-chat-db-deployment-done.png)
+![LobeHub 数据库版部署完成页面](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/lobe-chat-db-deployment-done.png)
找到公网地址,复制下来,后面需要用到。
-![Lobe Chat 数据库版公网地址](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/lobe-chat-db-public-address.png)
+![LobeHub 数据库版公网地址](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/lobe-chat-db-public-address.png)
## 部署后配置
-进入 Logto 的 `Applications` 页面,找到 `Lobe Chat` 应用,点击进入应用详情页面。
+进入 Logto 的 `Applications` 页面,找到 `LobeHub` 应用,点击进入应用详情页面。
在 `Settings` 页面中找到 “Redirect URI” 和 “Post sign-out redirect URI” 这两个参数,填入以下值:
- Redirect URI:`https://<lobe-chat-db-public-address>/api/auth/callback/logto`
- Post sign-out redirect URI:`https://<lobe-chat-db-public-address>`
-其中 `https://<lobe-chat-db-public-address>` 为 Lobe Chat 数据库版的公网地址。
+其中 `https://<lobe-chat-db-public-address>` 为 LobeHub 数据库版的公网地址。
填完之后点击 `Save changes` 按钮保存配置。
-现在通过 `https://<lobe-chat-db-public-address>` 访问 Lobe Chat 数据库版,点击左上角的头像,然后点击【登录 / 注册】按钮:
+现在通过 `https://<lobe-chat-db-public-address>` 访问 LobeHub 数据库版,点击左上角的头像,然后点击【登录 / 注册】按钮:
-![Lobe Chat 数据库版登录页面](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/lobe-chat-db-login.png)
+![LobeHub 数据库版登录页面](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/lobe-chat-db-login.png)
接下来会跳转到 Logto 的登录页面,点击【注册】注册一个账号。
-![Lobe Chat 数据库版注册页面](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/lobe-chat-db-register.png)
+![LobeHub 数据库版注册页面](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/lobe-chat-db-register.png)
-注册完成后,即可使用 Logto 登录 Lobe Chat 数据库版。
+注册完成后,即可使用 Logto 登录 LobeHub 数据库版。
-![Lobe Chat 数据库版登录成功页面](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/lobe-chat-db-login-success.png)
+![LobeHub 数据库版登录成功页面](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/lobe-chat-db-login-success.png)
diff --git a/docs/self-hosting/platform/vercel.zh-CN.mdx b/docs/self-hosting/platform/vercel.zh-CN.mdx
index bf9eb51c9d9..cf7f0eecec9 100644
--- a/docs/self-hosting/platform/vercel.zh-CN.mdx
+++ b/docs/self-hosting/platform/vercel.zh-CN.mdx
@@ -1,6 +1,6 @@
---
-title: 在 Vercel 上部署 LobeHub 的服务端数据库版本
-description: 本文详细介绍如何在 Vercel 中部署服务端数据库版 LobeHub,包括数据库配置、身份验证服务配置和 S3 存储服务的设置步骤。
+title: 在 Vercel 上部署 LobeHub
+description: 本文详细介绍如何在 Vercel 中部署 LobeHub,包括数据库配置、身份验证服务配置和 S3 存储服务的设置步骤。
tags:
- 服务端数据库
- Postgres
@@ -12,9 +12,9 @@ tags:
- 环境变量配置
---
-# 在 Vercel 上部署服务端数据库版
+# 在 Vercel 上部署 LobeHub
-本文将详细介绍如何在 Vercel 中部署服务端数据库版 LobeHub,包括: 1)数据库配置;2)身份验证服务配置;3) S3 存储服务的设置步骤。
+本文将详细介绍如何在 Vercel 中部署 LobeHub,包括: 1)数据库配置;2)身份验证服务配置;3) S3 存储服务的设置步骤。
<Callout type={'warning'}>
进行后续操作前,请务必确认以下事项:
diff --git a/docs/self-hosting/start.mdx b/docs/self-hosting/start.mdx
index 56014001dc3..bcc51a68f49 100644
--- a/docs/self-hosting/start.mdx
+++ b/docs/self-hosting/start.mdx
@@ -4,7 +4,7 @@ description: >-
Explore multiple deployment platforms like Vercel, Docker, Docker Compose, and
more to deploy LobeHub. Choose the platform that best suits your needs.
tags:
- - Lobe Chat
+ - LobeHub
- Deployment Platform
- Vercel
- Docker
@@ -12,8 +12,8 @@ tags:
- Alibaba Cloud
---
-# Build Your Own Lobe Chat
+# Build Your Own LobeHub
-LobeHub supports various deployment platforms, including Vercel, Docker, and Docker Compose. You can choose a deployment platform that suits you to build your own Lobe Chat.
+LobeHub supports various deployment platforms, including Vercel, Docker, and Docker Compose. You can choose a deployment platform that suits you to build your own LobeHub.
<PlatformCards urlPrefix={'platform'} />
diff --git a/docs/self-hosting/start.zh-CN.mdx b/docs/self-hosting/start.zh-CN.mdx
index 5eaa2ccbc6f..bd37a625ee4 100644
--- a/docs/self-hosting/start.zh-CN.mdx
+++ b/docs/self-hosting/start.zh-CN.mdx
@@ -1,10 +1,10 @@
---
title: 构建属于自己的 LobeHub - 自选部署平台
description: >-
- 选择适合自己的部署平台,构建个性化的 Lobe Chat。支持 Docker、Docker
+ 选择适合自己的部署平台,构建个性化的 LobeHub。支持 Docker、Docker
Compose、Netlify、Railway、Repocloud、Sealos、Vercel 和 Zeabur 部署。
tags:
- - Lobe Chat
+ - LobeHub
- 部署平台
- Docker
- Netlify
@@ -16,8 +16,8 @@ tags:
- 腾讯轻量云
---
-# 构建属于自己的 Lobe Chat
+# 构建属于自己的 LobeHub
-LobeHub 支持多种部署平台,包括 Vercel、Docker、 Docker Compose 、阿里云计算巢 和腾讯轻量云 等,你可以选择适合自己的部署平台进行部署,构建属于自己的 Lobe Chat。
+LobeHub 支持多种部署平台,包括 Vercel、Docker、 Docker Compose 、阿里云计算巢 和腾讯轻量云 等,你可以选择适合自己的部署平台进行部署,构建属于自己的 LobeHub。
<PlatformCards urlPrefix={'platform'} />