@lobehub/chat 1.14.1 → 1.14.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +50 -0
- package/README.md +14 -8
- package/README.zh-CN.md +14 -8
- package/docker-compose/.env.example +35 -0
- package/docker-compose/.env.zh-CN.example +35 -0
- package/docker-compose/docker-compose.yml +70 -0
- package/docker-compose/minio-bucket.config.json +34 -0
- package/docs/self-hosting/advanced/auth/next-auth/authentik.mdx +0 -1
- package/docs/self-hosting/advanced/auth/next-auth/authentik.zh-CN.mdx +0 -1
- package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.mdx +3 -3
- package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.zh-CN.mdx +3 -1
- package/docs/self-hosting/advanced/auth/next-auth/github.mdx +0 -1
- package/docs/self-hosting/advanced/auth/next-auth/github.zh-CN.mdx +0 -1
- package/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.mdx +0 -1
- package/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.zh-CN.mdx +0 -1
- package/docs/self-hosting/advanced/auth/next-auth/zitadel.mdx +0 -1
- package/docs/self-hosting/advanced/auth/next-auth/zitadel.zh-CN.mdx +0 -1
- package/docs/self-hosting/advanced/auth.mdx +11 -5
- package/docs/self-hosting/advanced/auth.zh-CN.mdx +11 -5
- package/docs/self-hosting/server-database/docker-compose.mdx +465 -7
- package/docs/self-hosting/server-database/docker-compose.zh-CN.mdx +456 -4
- package/docs/self-hosting/server-database/docker.mdx +20 -0
- package/docs/self-hosting/server-database/docker.zh-CN.mdx +27 -4
- package/docs/usage/features/pwa.zh-CN.mdx +1 -1
- package/locales/ar/chat.json +1 -1
- package/locales/bg-BG/chat.json +1 -1
- package/locales/de-DE/chat.json +1 -1
- package/locales/en-US/chat.json +1 -1
- package/locales/es-ES/chat.json +1 -1
- package/locales/fr-FR/chat.json +1 -1
- package/locales/it-IT/chat.json +1 -1
- package/locales/ja-JP/chat.json +1 -1
- package/locales/ko-KR/chat.json +1 -1
- package/locales/nl-NL/chat.json +1 -1
- package/locales/pl-PL/chat.json +1 -1
- package/locales/pt-BR/chat.json +1 -1
- package/locales/ru-RU/chat.json +1 -1
- package/locales/tr-TR/chat.json +1 -1
- package/locales/vi-VN/chat.json +1 -1
- package/locales/zh-CN/chat.json +1 -1
- package/locales/zh-TW/chat.json +1 -1
- package/package.json +1 -1
- package/src/app/(main)/chat/settings/features/EditPage.tsx +6 -1
- package/src/database/server/models/asyncTask.ts +4 -4
- package/src/locales/default/chat.ts +1 -1
- package/src/server/routers/async/caller.ts +2 -0
- package/src/server/routers/async/file.ts +72 -46
- package/src/server/services/chunk/index.ts +32 -3
- package/src/store/agent/slices/chat/selectors.ts +7 -2
- package/src/store/chat/slices/message/selectors.ts +1 -1
- package/src/types/asyncTask.ts +23 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 1.14.3](https://github.com/lobehub/lobe-chat/compare/v1.14.2...v1.14.3)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-08-27**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: Improve aysnc error type.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: Improve aysnc error type, closes [#3638](https://github.com/lobehub/lobe-chat/issues/3638) ([dbae456](https://github.com/lobehub/lobe-chat/commit/dbae456))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
### [Version 1.14.2](https://github.com/lobehub/lobe-chat/compare/v1.14.1...v1.14.2)
|
|
31
|
+
|
|
32
|
+
<sup>Released on **2024-08-27**</sup>
|
|
33
|
+
|
|
34
|
+
#### 🐛 Bug Fixes
|
|
35
|
+
|
|
36
|
+
- **misc**: Fix agent setting.
|
|
37
|
+
|
|
38
|
+
<br/>
|
|
39
|
+
|
|
40
|
+
<details>
|
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
42
|
+
|
|
43
|
+
#### What's fixed
|
|
44
|
+
|
|
45
|
+
- **misc**: Fix agent setting, closes [#3633](https://github.com/lobehub/lobe-chat/issues/3633) ([298fddb](https://github.com/lobehub/lobe-chat/commit/298fddb))
|
|
46
|
+
|
|
47
|
+
</details>
|
|
48
|
+
|
|
49
|
+
<div align="right">
|
|
50
|
+
|
|
51
|
+
[](#readme-top)
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
|
|
5
55
|
### [Version 1.14.1](https://github.com/lobehub/lobe-chat/compare/v1.14.0...v1.14.1)
|
|
6
56
|
|
|
7
57
|
<sup>Released on **2024-08-27**</sup>
|
package/README.md
CHANGED
|
@@ -266,14 +266,20 @@ Our marketplace is not just a showcase platform but also a collaborative space.
|
|
|
266
266
|
|
|
267
267
|
<!-- AGENT LIST -->
|
|
268
268
|
|
|
269
|
-
| Recent Submits
|
|
270
|
-
|
|
|
271
|
-
| [
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
269
|
+
| Recent Submits | Description |
|
|
270
|
+
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
271
|
+
| [Backtracking Question Expert](https://chat-preview.lobehub.com/market?agent=step-back-expert)<br/><sup>By **[tiny656](https://github.com/tiny656)** on **2024-08-27**</sup> | Hello! I am an expert in world knowledge, skilled in using backtracking questioning strategies to help you gain a deeper understanding and analysis of issues. Please enter a question, and I will respond to it according to the following process: |
|
|
272
|
+
|
|
273
|
+
1. Provide at least 3 optional backtracking questions that align with the strategy.
|
|
274
|
+
2. Answer each of these backtracking questions.
|
|
275
|
+
3. Use the above answers as evidence to logically and coherently provide a final answer to your question, assisted by visual charts.
|
|
276
|
+
|
|
277
|
+
Please tell me what issue you would like to explore?<br/>`backtracking-questions` `thinking-strategies` `problem-analysis` |
|
|
278
|
+
\| [TypeScript Solution Architect](https://chat-preview.lobehub.com/market?agent=typescript-developer)<br/><sup>By **[swarfte](https://github.com/swarfte)** on **2024-08-24**</sup> | Expert in TypeScript, Node.js, Vue.js 3, Nuxt.js 3, Express.js, React.js, and modern UI libraries.<br/>`type-script` `java-script` `web-development` `coding-standards` `best-practices` |
|
|
279
|
+
\| [Variable Name Conversion Expert](https://chat-preview.lobehub.com/market?agent=variable-name-conversion)<br/><sup>By **[zengyishou](https://github.com/zengyishou)** on **2024-08-21**</sup> | In software development, naming variables is a common yet relatively time-consuming task. This assistant can automatically convert Chinese variable names into English variable names that conform to camelCase, PascalCase, snake_case, kebab-case, and constant naming conventions based on specific naming rules. This not only improves code readability but also alleviates the frustration of variable naming.<br/>`software-development` `variable-naming` `chinese-to-english` `code-standards` `automatic-conversion` |
|
|
280
|
+
\| [Prompt Engineering Expert](https://chat-preview.lobehub.com/market?agent=ai-prompts-assistant)<br/><sup>By **[cyicz123](https://github.com/cyicz123)** on **2024-08-12**</sup> | Specializing in prompt optimization and design<br/>`prompt-engineering` `ai-interaction` `writing` `optimization` `consulting` |
|
|
281
|
+
|
|
282
|
+
> 📊 Total agents: [<kbd>**318**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
|
277
283
|
|
|
278
284
|
<!-- AGENT LIST -->
|
|
279
285
|
|
package/README.zh-CN.md
CHANGED
|
@@ -254,14 +254,20 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
|
|
|
254
254
|
|
|
255
255
|
<!-- AGENT LIST -->
|
|
256
256
|
|
|
257
|
-
| 最近新增
|
|
258
|
-
|
|
|
259
|
-
| [
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
257
|
+
| 最近新增 | 助手说明 |
|
|
258
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
259
|
+
| [后退提问专家](https://chat-preview.lobehub.com/market?agent=step-back-expert)<br/><sup>By **[tiny656](https://github.com/tiny656)** on **2024-08-27**</sup> | 你好!我是世界知识的专家,擅长用后退提问策略来帮助你更深入地理解和分析问题。请你输入一个问题,我会根据以下流程回答你的问题: |
|
|
260
|
+
|
|
261
|
+
1. 给出至少 3 个符合策略的可选后退提问。
|
|
262
|
+
2. 分别回答这些后退提问。
|
|
263
|
+
3. 将上述回答作为论据,有逻辑、条理地,使用可视化图表辅助对你的问题进行最终作答。
|
|
264
|
+
|
|
265
|
+
请告诉我你想要探讨的问题是什么?<br/>`后退提问` `思考策略` `问题分析` |
|
|
266
|
+
\| [TypeScript 解决方案架构师](https://chat-preview.lobehub.com/market?agent=typescript-developer)<br/><sup>By **[swarfte](https://github.com/swarfte)** on **2024-08-24**</sup> | 精通 TypeScript、Node.js、Vue.js 3、Nuxt.js 3、Express.js、React.js 和现代 UI 库。<br/>`类型脚本` `java-script` `网页开发` `编码标准` `最佳实践` |
|
|
267
|
+
\| [开发变量名转换专家](https://chat-preview.lobehub.com/market?agent=variable-name-conversion)<br/><sup>By **[zengyishou](https://github.com/zengyishou)** on **2024-08-21**</sup> | 在软件开发过程中,命名变量是一项常见却相对耗时的任务。本助手能够根据特定的命名规则自动将中文变量名转换为符合小驼峰、大驼峰、下划线、横线以及常量命名规范的英文变量名。这不仅提高了代码的可读性,还解决了变量命名的苦恼。<br/>`软件开发` `变量命名` `中文转英文` `代码规范` `自动转换` |
|
|
268
|
+
\| [提示工程专家](https://chat-preview.lobehub.com/market?agent=ai-prompts-assistant)<br/><sup>By **[cyicz123](https://github.com/cyicz123)** on **2024-08-12**</sup> | 专精 Prompt 优化与设计<br/>`提示工程` `ai交互` `写作` `优化` `咨询` |
|
|
269
|
+
|
|
270
|
+
> 📊 Total agents: [<kbd>**318**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
|
265
271
|
|
|
266
272
|
<!-- AGENT LIST -->
|
|
267
273
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# LobeChat domain
|
|
2
|
+
APP_URL=https://lobe.example.com/
|
|
3
|
+
|
|
4
|
+
# Postgres related, which are the necessary environment variables for DB
|
|
5
|
+
# Key used to encrypt sensitive information; can be generated using openssl rand -base64 32
|
|
6
|
+
KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ=
|
|
7
|
+
# Postgres database connection string
|
|
8
|
+
# Format: postgres://username:password@host:port/dbname; if your pg instance is a Docker container, use the container name
|
|
9
|
+
DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@postgresql:5432/postgres
|
|
10
|
+
|
|
11
|
+
# NEXT_AUTH related; can use auth0, Azure AD, GitHub, Authentik, Zitadel, Logto, etc. If you have other integration requests, feel free to submit a PR.
|
|
12
|
+
# Here we take Logto as an example
|
|
13
|
+
NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg
|
|
14
|
+
NEXT_AUTH_SSO_PROVIDERS=logto
|
|
15
|
+
NEXTAUTH_URL=https://lobe-auth-api.example.com/api/auth
|
|
16
|
+
LOGTO_CLIENT_ID=buc2lpttyo6evdtrfqsur
|
|
17
|
+
LOGTO_CLIENT_SECRET=d97eztx8Ej6aUafeToMAL4jugAKGTAH4
|
|
18
|
+
LOGTO_ISSUER=https://lobe-auth-api.example.com/oidc
|
|
19
|
+
# Note: If you have ACCESS_CODE, be sure to clear it. We use NEXT_AUTH as the only authentication source.
|
|
20
|
+
# Proxy, if you need it (e.g., if you use GitHub as an authentication service provider)
|
|
21
|
+
HTTP_PROXY=http://localhost:7890
|
|
22
|
+
HTTPS_PROXY=http://localhost:7890
|
|
23
|
+
|
|
24
|
+
# MinIO S3 configuration
|
|
25
|
+
S3_ACCESS_KEY_ID=YOUR_S3_ACCESS_KEY_ID # Invalid until manually created in MinIO UI
|
|
26
|
+
S3_SECRET_ACCESS_KEY=YOUR_S3_SECRET_ACCESS_KEY # Invalid until manually created in MinIO UI
|
|
27
|
+
S3_ENDPOINT=https://lobe-s3-api.example.com
|
|
28
|
+
S3_BUCKET=lobe # Invalid until manually created in MinIO UI
|
|
29
|
+
S3_PUBLIC_DOMAIN=https://lobe-s3-api.example.com
|
|
30
|
+
S3_ENABLE_PATH_STYLE=1
|
|
31
|
+
|
|
32
|
+
# Other environment variables, as needed. You can refer to the environment variables configuration for the client version, making sure not to have ACCESS_CODE.
|
|
33
|
+
# OPEANAI_API_KEY=sk-xxxx
|
|
34
|
+
# OPENAI_PROXY_URL=https://api.openai.com/v1
|
|
35
|
+
# OPENAI_MODEL_LIST=...
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# LobeChat 域名
|
|
2
|
+
APP_URL=https://lobe.example.com/
|
|
3
|
+
|
|
4
|
+
# Postgres 相关,也即 DB 必须的环境变量
|
|
5
|
+
# 用于加密敏感信息的密钥,可以使用 openssl rand -base64 32 生成
|
|
6
|
+
KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ=
|
|
7
|
+
# Postgres 数据库连接字符串
|
|
8
|
+
# 格式:postgres://username:password@host:port/dbname,如果你的 pg 实例为 Docker 容器,请使用容器名
|
|
9
|
+
DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@postgresql:5432/postgres
|
|
10
|
+
|
|
11
|
+
# NEXT_AUTH 相关,可以使用 auth0、Azure AD、GitHub、Authentik、Zitadel、Logto 等,如有其他接入诉求欢迎提 PR
|
|
12
|
+
# 这里以 Logto 为例
|
|
13
|
+
NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg
|
|
14
|
+
NEXT_AUTH_SSO_PROVIDERS=logto
|
|
15
|
+
NEXTAUTH_URL=https://lobe-auth-api.example.com/api/auth
|
|
16
|
+
LOGTO_CLIENT_ID=buc2lpttyo6evdtrfqsur
|
|
17
|
+
LOGTO_CLIENT_SECRET=d97eztx8Ej6aUafeToMAL4jugAKGTAH4
|
|
18
|
+
LOGTO_ISSUER=https://lobe-auth-api.example.com/oidc
|
|
19
|
+
# 注:如果你有 ACCESS_CODE,请务必清空,我们以 NEXT_AUTH 作为唯一鉴权来源
|
|
20
|
+
# Proxy,如果你需要的话(比如你使用 GitHub 作为鉴权服务提供商)
|
|
21
|
+
HTTP_PROXY=http://localhost:7890
|
|
22
|
+
HTTPS_PROXY=http://localhost:7890
|
|
23
|
+
|
|
24
|
+
# MinIO S3 配置
|
|
25
|
+
S3_ACCESS_KEY_ID=YOUR_S3_ACCESS_KEY_ID # 直到在 MinIO UI 中手动创建之前都是无效的
|
|
26
|
+
S3_SECRET_ACCESS_KEY=YOUR_S3_SECRET_ACCESS_KEY # 直到在 MinIO UI 中手动创建之前都是无效的
|
|
27
|
+
S3_ENDPOINT=https://lobe-s3-api.example.com
|
|
28
|
+
S3_BUCKET=lobe # 直到在 MinIO UI 中手动创建之前都是无效的
|
|
29
|
+
S3_PUBLIC_DOMAIN=https://lobe-s3-api.example.com
|
|
30
|
+
S3_ENABLE_PATH_STYLE=1
|
|
31
|
+
|
|
32
|
+
# 其他环境变量,视需求而定,可以参照客户端版本的环境变量配置,注意不要有 ACCESS_CODE
|
|
33
|
+
# OPEANAI_API_KEY=sk-xxxx
|
|
34
|
+
# OPENAI_PROXY_URL=https://api.openai.com/v1
|
|
35
|
+
# OPENAI_MODEL_LIST=...
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
services:
|
|
2
|
+
postgresql:
|
|
3
|
+
image: pgvector/pgvector:pg16
|
|
4
|
+
container_name: lobe-postgres
|
|
5
|
+
ports:
|
|
6
|
+
- '5432:5432'
|
|
7
|
+
volumes:
|
|
8
|
+
- './data:/var/lib/postgresql/data'
|
|
9
|
+
environment:
|
|
10
|
+
- 'POSTGRES_DB=lobe'
|
|
11
|
+
- 'POSTGRES_PASSWORD=uWNZugjBqixf8dxC'
|
|
12
|
+
healthcheck:
|
|
13
|
+
test: ['CMD-SHELL', 'pg_isready -U postgres']
|
|
14
|
+
interval: 5s
|
|
15
|
+
timeout: 5s
|
|
16
|
+
retries: 5
|
|
17
|
+
restart: always
|
|
18
|
+
|
|
19
|
+
minio:
|
|
20
|
+
image: minio/minio
|
|
21
|
+
container_name: lobe-minio
|
|
22
|
+
ports:
|
|
23
|
+
- '9000:9000'
|
|
24
|
+
- '9001:9001'
|
|
25
|
+
volumes:
|
|
26
|
+
- './s3_data:/etc/minio/data'
|
|
27
|
+
environment:
|
|
28
|
+
- 'MINIO_ROOT_USER=YOUR_MINIO_USER'
|
|
29
|
+
- 'MINIO_ROOT_PASSWORD=YOUR_MINIO_PASSWORD'
|
|
30
|
+
- 'MINIO_DOMAIN=lobe-s3-api.example.com'
|
|
31
|
+
- 'MINIO_API_CORS_ALLOW_ORIGIN=https://lobe.example.com' # Your LobeChat's domain name.
|
|
32
|
+
restart: always
|
|
33
|
+
command: >
|
|
34
|
+
server /etc/minio/data --address ":9000" --console-address ":9001"
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
logto:
|
|
38
|
+
image: svhd/logto
|
|
39
|
+
container_name: lobe-logto
|
|
40
|
+
ports:
|
|
41
|
+
- '3001:3001'
|
|
42
|
+
- '3002:3002'
|
|
43
|
+
depends_on:
|
|
44
|
+
postgresql:
|
|
45
|
+
condition: service_healthy
|
|
46
|
+
environment:
|
|
47
|
+
- 'TRUST_PROXY_HEADER=1'
|
|
48
|
+
- 'DB_URL=postgresql://postgres:uWNZugjBqixf8dxC@postgresql:5432/logto'
|
|
49
|
+
- 'ENDPOINT=https://lobe-auth-api.example.com'
|
|
50
|
+
- 'ADMIN_ENDPOINT=https://lobe-auth-ui.example.com'
|
|
51
|
+
entrypoint: ['sh', '-c', 'npm run cli db seed -- --swe && npm start']
|
|
52
|
+
|
|
53
|
+
lobe:
|
|
54
|
+
image: lobehub/lobe-chat-database
|
|
55
|
+
container_name: lobe-database
|
|
56
|
+
ports:
|
|
57
|
+
- '3210:3210'
|
|
58
|
+
depends_on:
|
|
59
|
+
- postgresql
|
|
60
|
+
- minio
|
|
61
|
+
- logto
|
|
62
|
+
env_file:
|
|
63
|
+
- .env
|
|
64
|
+
restart: always
|
|
65
|
+
|
|
66
|
+
volumes:
|
|
67
|
+
data:
|
|
68
|
+
driver: local
|
|
69
|
+
s3_data:
|
|
70
|
+
driver: local
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Statement": [
|
|
3
|
+
{
|
|
4
|
+
"Effect": "Allow",
|
|
5
|
+
"Principal": {
|
|
6
|
+
"AWS": ["*"]
|
|
7
|
+
},
|
|
8
|
+
"Action": ["s3:GetBucketLocation"],
|
|
9
|
+
"Resource": ["arn:aws:s3:::lobe"]
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"Effect": "Allow",
|
|
13
|
+
"Principal": {
|
|
14
|
+
"AWS": ["*"]
|
|
15
|
+
},
|
|
16
|
+
"Action": ["s3:ListBucket"],
|
|
17
|
+
"Resource": ["arn:aws:s3:::lobe"],
|
|
18
|
+
"Condition": {
|
|
19
|
+
"StringEquals": {
|
|
20
|
+
"s3:prefix": ["files/*"]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"Effect": "Allow",
|
|
26
|
+
"Principal": {
|
|
27
|
+
"AWS": ["*"]
|
|
28
|
+
},
|
|
29
|
+
"Action": ["s3:PutObject", "s3:DeleteObject", "s3:GetObject"],
|
|
30
|
+
"Resource": ["arn:aws:s3:::lobe/files/**"]
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"Version": "2012-10-17"
|
|
34
|
+
}
|
|
@@ -59,7 +59,6 @@ When deploying LobeChat, you need to configure the following environment variabl
|
|
|
59
59
|
| `AUTHENTIK_CLIENT_ID` | Required | The Client ID from the Authentik application provider details page |
|
|
60
60
|
| `AUTHENTIK_CLIENT_SECRET` | Required | The Client Secret from the Authentik application provider details page |
|
|
61
61
|
| `AUTHENTIK_ISSUER` | Required | The OpenID Configuration Issuer from the Authentik application provider details page |
|
|
62
|
-
| `ACCESS_CODE` | Required | Add a password to access this service, you can set a sufficiently long random password to "disable" access code authorization |
|
|
63
62
|
| `NEXTAUTH_URL` | Optional | This URL is used to specify the callback address for Auth.js when performing OAuth authentication. It only needs to be set when the default generated redirect address is incorrect. `https://example.com/api/auth` |
|
|
64
63
|
|
|
65
64
|
<Callout type={'tip'}>
|
|
@@ -54,7 +54,6 @@ https://your-domain/api/auth/callback/authentik
|
|
|
54
54
|
| `AUTHENTIK_CLIENT_ID` | 必选 | Authentik 提供程序详情页的 客户端 ID |
|
|
55
55
|
| `AUTHENTIK_CLIENT_SECRET` | 必选 | Authentik 提供程序详情页的 客户端 Secret |
|
|
56
56
|
| `AUTHENTIK_ISSUER` | 必选 | Authentik 提供程序详情页的 OpenID 配置颁发者 |
|
|
57
|
-
| `ACCESS_CODE` | 必选 | 添加访问此服务的密码,你可以设置一个足够长的随机密码以 “禁用” 访问码授权 |
|
|
58
57
|
| `NEXTAUTH_URL` | 可选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://example.com/api/auth` |
|
|
59
58
|
|
|
60
59
|
<Callout type={'tip'}>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Configuring Cloudflare Zero Trust Authentication Service for LobeChat
|
|
3
3
|
description: >-
|
|
4
|
-
Learn how to configure Cloudflare Zero Trust for Single Sign-On (SSO) for
|
|
5
|
-
including creating an application provider, setting environment
|
|
6
|
-
deployment instructions.
|
|
4
|
+
Learn how to configure Cloudflare Zero Trust for Single Sign-On (SSO) for
|
|
5
|
+
LobeChat, including creating an application provider, setting environment
|
|
6
|
+
variables, and deployment instructions.
|
|
7
7
|
tags:
|
|
8
8
|
- Cloudflare Zero Trust
|
|
9
9
|
- Single Sign-On (SSO)
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: 在 LobeChat 中配置 Cloudflare Zero Trust 身份验证服务
|
|
3
|
-
description:
|
|
3
|
+
description: >-
|
|
4
|
+
学习如何在 LobeChat 中配置 Cloudflare Zero Trust 身份验证服务,包括创建提供程序、配置环境变量和部署
|
|
5
|
+
LobeChat。详细步骤和必要环境变量设置。
|
|
4
6
|
tags:
|
|
5
7
|
- Cloudflare Zero Trust
|
|
6
8
|
- 身份验证
|
|
@@ -86,7 +86,6 @@ When deploying LobeChat, you need to configure the following environment variabl
|
|
|
86
86
|
| `NEXT_AUTH_SSO_PROVIDERS` | Required | Select the Single Sign-On provider for LobeChat. Use `github` for Github. |
|
|
87
87
|
| `GITHUB_CLIENT_ID` | Required | Client ID in the Github App details page. |
|
|
88
88
|
| `GITHUB_CLIENT_SECRET` | Required | Client Secret in the Github App details page. |
|
|
89
|
-
| `ACCESS_CODE` | Required | Add a password for accessing this service. You can set a long random password to "disable" access code authorization. |
|
|
90
89
|
| `NEXTAUTH_URL` | Optional | This URL is used to specify the callback address for Auth.js when performing OAuth authentication. Only set it if the default generated redirect address is incorrect. `https://example.com/api/auth` |
|
|
91
90
|
|
|
92
91
|
<Callout type={'tip'}>
|
|
@@ -82,7 +82,6 @@ tags:
|
|
|
82
82
|
| `NEXT_AUTH_SSO_PROVIDERS` | 必选 | 选择 LoboChat 的单点登录提供商。使用 Github 请填写 `github`。 |
|
|
83
83
|
| `GITHUB_CLIENT_ID` | 必选 | Github App详情页的 客户端 ID |
|
|
84
84
|
| `GITHUB_CLIENT_SECRET` | 必选 | Github App详情页的 客户端 Secret |
|
|
85
|
-
| `ACCESS_CODE` | 必选 | 添加访问此服务的密码,你可以设置一个足够长的随机密码以 “禁用” 访问码授权 |
|
|
86
85
|
| `NEXTAUTH_URL` | 可选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://example.com/api/auth` |
|
|
87
86
|
|
|
88
87
|
<Callout type={'tip'}>
|
|
@@ -76,7 +76,6 @@ When deploying LobeChat, you need to configure the following environment variabl
|
|
|
76
76
|
| `AZURE_AD_CLIENT_ID` | Required | Client ID of the Microsoft Entra ID application. |
|
|
77
77
|
| `AZURE_AD_CLIENT_SECRET` | Required | Client Secret of the Microsoft Entra ID application. |
|
|
78
78
|
| `AZURE_AD_TENANT_ID` | Required | Tenant ID of the Microsoft Entra ID application. |
|
|
79
|
-
| `ACCESS_CODE` | Required | Add a password for accessing this service, you can set a sufficiently long random password to "disable" access code authorization. |
|
|
80
79
|
| `NEXTAUTH_URL` | Optional | This URL is used to specify the callback address for Auth.js when performing OAuth authentication. It is only necessary to set it when the default generated redirect address is incorrect. `https://example.com/api/auth` |
|
|
81
80
|
|
|
82
81
|
<Callout type={'tip'}>
|
|
@@ -73,7 +73,6 @@ https://your-domain/api/auth/callback/azure-ad
|
|
|
73
73
|
| `AZURE_AD_CLIENT_ID` | 必选 | Microsoft Entra ID 应用程序的 Client ID |
|
|
74
74
|
| `AZURE_AD_CLIENT_SECRET` | 必选 | Microsoft Entra ID 应用程序的 Client Secret |
|
|
75
75
|
| `AZURE_AD_TENANT_ID` | 必选 | Microsoft Entra ID 应用程序的 Tenant ID |
|
|
76
|
-
| `ACCESS_CODE` | 必选 | 添加访问此服务的密码,你可以设置一个足够长的随机密码以 “禁用” 访问码授权 |
|
|
77
76
|
| `NEXTAUTH_URL` | 可选 | 该 URL 用于指定 Auth.js 在执行 OAuth 验证时的回调地址,当默认生成的重定向地址发生不正确时才需要设置。`https://example.com/api/auth` |
|
|
78
77
|
|
|
79
78
|
<Callout type={'tip'}>
|
|
@@ -104,7 +104,6 @@ When deploying LobeChat, you need to configure the following environment variabl
|
|
|
104
104
|
| `ZITADEL_CLIENT_ID` | Required | Client ID (`ClientId` as shown in ZITADEL) of the ZITADEL application |
|
|
105
105
|
| `ZITADEL_CLIENT_SECRET` | Required | Client Secret (`ClientSecret` as shown in ZITADEL) of the ZITADEL application |
|
|
106
106
|
| `ZITADEL_ISSUER` | Required | Issuer URL of the ZITADEL application |
|
|
107
|
-
| `ACCESS_CODE` | Required | Add a password to access this service. You can set a sufficiently long random password to "disable" access code authorization. |
|
|
108
107
|
| `NEXTAUTH_URL` | Optional | The URL is used to specify the callback address for the execution of OAuth authentication in Auth.js. It needs to be set only when the default address is incorrect. `https://example.com/api/auth` |
|
|
109
108
|
|
|
110
109
|
<Callout type={'tip'}>
|
|
@@ -100,7 +100,6 @@ http(s)://your-domain/api/auth/callback/zitadel
|
|
|
100
100
|
| `ZITADEL_CLIENT_ID` | 必选 | ZITADEL 应用的 Client ID(`ClientId`)。 |
|
|
101
101
|
| `ZITADEL_CLIENT_SECRET` | 必选 | ZITADEL 应用的 Client Secret(`ClientSecret`)。 |
|
|
102
102
|
| `ZITADEL_ISSUER` | 必选 | ZITADEL 应用的 OpenID Connect 颁发者(issuer)URL。 |
|
|
103
|
-
| `ACCESS_CODE` | 必选 | 添加访问此服务的代码。您可以设置一个足够长的随机密码以「禁用」访问码授权。 |
|
|
104
103
|
| `NEXTAUTH_URL` | 可选 | 该 URL 用于指定 Auth.js 中执行 OAuth 认证的回调地址。仅当默认地址不正确时才需要设置。`https://example.com/api/auth` |
|
|
105
104
|
|
|
106
105
|
<Callout type={'tip'}>
|
|
@@ -36,14 +36,20 @@ Before using NextAuth, please set the following variables in LobeChat's environm
|
|
|
36
36
|
Currently supported identity verification services include:
|
|
37
37
|
|
|
38
38
|
<Cards>
|
|
39
|
-
<Card href={'/docs/self-hosting/advanced/
|
|
39
|
+
<Card href={'/docs/self-hosting/advanced/auth/next-auth/auth0'} title={'Auth0'} />
|
|
40
40
|
<Card
|
|
41
|
-
href={'/docs/self-hosting/advanced/
|
|
41
|
+
href={'/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id'}
|
|
42
42
|
title={'Microsoft Entra ID'}
|
|
43
43
|
/>
|
|
44
|
-
<Card href={'/docs/self-hosting/advanced/
|
|
45
|
-
<Card href={'/docs/self-hosting/advanced/
|
|
46
|
-
<Card href={'/docs/self-hosting/advanced/
|
|
44
|
+
<Card href={'/docs/self-hosting/advanced/auth/next-auth/authentik'} title={'Authentik'} />
|
|
45
|
+
<Card href={'/docs/self-hosting/advanced/auth/next-auth/github'} title={'Github'} />
|
|
46
|
+
<Card href={'/docs/self-hosting/advanced/auth/next-auth/zitadel'} title={'ZITADEL'} />
|
|
47
|
+
<Card
|
|
48
|
+
href={'/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust'}
|
|
49
|
+
title={'Cloudflare Zero Trust'}
|
|
50
|
+
/>
|
|
51
|
+
<Card href={'/docs/self-hosting/advanced/auth/next-auth/authelia'} title={'Authelia'} />
|
|
52
|
+
<Card href={'/docs/self-hosting/advanced/auth/next-auth/logto'} title={'Logto'} />
|
|
47
53
|
</Cards>
|
|
48
54
|
|
|
49
55
|
Click on the links to view the corresponding platform's configuration documentation.
|
|
@@ -33,14 +33,20 @@ LobeChat 与 Clerk 做了深度集成,能够为用户提供一个更加安全
|
|
|
33
33
|
目前支持的身份验证服务有:
|
|
34
34
|
|
|
35
35
|
<Cards>
|
|
36
|
-
<Card href={'/zh/docs/self-hosting/advanced/
|
|
36
|
+
<Card href={'/zh/docs/self-hosting/advanced/auth/next-auth/auth0'} title={'Auth0'} />
|
|
37
37
|
<Card
|
|
38
|
-
href={'/zh/docs/self-hosting/advanced/
|
|
38
|
+
href={'/zh/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id'}
|
|
39
39
|
title={'Microsoft Entra ID'}
|
|
40
40
|
/>
|
|
41
|
-
<Card href={'/zh/docs/self-hosting/advanced/
|
|
42
|
-
<Card href={'/zh/docs/self-hosting/advanced/
|
|
43
|
-
<Card href={'/zh/docs/self-hosting/advanced/
|
|
41
|
+
<Card href={'/zh/docs/self-hosting/advanced/auth/next-auth/authentik'} title={'Authentik'} />
|
|
42
|
+
<Card href={'/zh/docs/self-hosting/advanced/auth/next-auth/github'} title={'Github'} />
|
|
43
|
+
<Card href={'/zh/docs/self-hosting/advanced/auth/next-auth/zitadel'} title={'ZITADEL'} />
|
|
44
|
+
<Card
|
|
45
|
+
href={'/zh/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust'}
|
|
46
|
+
title={'Cloudflare Zero Trust'}
|
|
47
|
+
/>
|
|
48
|
+
<Card href={'/zh/docs/self-hosting/advanced/auth/next-auth/authelia'} title={'Authelia'} />
|
|
49
|
+
<Card href={'/zh/docs/self-hosting/advanced/auth/next-auth/logto'} title={'Logto'} />
|
|
44
50
|
</Cards>
|
|
45
51
|
|
|
46
52
|
点击即可查看对应平台的配置文档。
|