📝 docs:(deploy): update Sealos deployment docs and links (#6399)

Signed-off-by: Carson Yang <yangchuansheng33@gmail.com>
This commit is contained in:
Carson Yang 2025-02-22 01:36:03 +08:00 committed by GitHub
parent 3e051dd6c0
commit fbf9fb1f1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 208 additions and 28 deletions

View File

@ -787,7 +787,7 @@ This project is [Apache 2.0](./LICENSE) licensed.
[deploy-on-repocloud-button-image]: https://d16t0pc4846x52.cloudfront.net/deploylobe.svg
[deploy-on-repocloud-link]: https://repocloud.io/details/?app_id=248
[deploy-on-sealos-button-image]: https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg
[deploy-on-sealos-link]: https://cloud.sealos.io/?openapp=system-template%3FtemplateName%3Dlobe-chat
[deploy-on-sealos-link]: https://template.usw.sealos.io/deploy?templateName=lobe-chat-db
[deploy-on-zeabur-button-image]: https://zeabur.com/button.svg
[deploy-on-zeabur-link]: https://zeabur.com/templates/VZGGTI
[discord-link]: https://discord.gg/AYFPHvv2jT

View File

@ -807,7 +807,7 @@ This project is [Apache 2.0](./LICENSE) licensed.
[deploy-on-alibaba-cloud-button-image]: https://service-info-public.oss-cn-hangzhou.aliyuncs.com/computenest-en.svg
[deploy-on-alibaba-cloud-link]: https://computenest.console.aliyun.com/service/instance/create/default?type=user&ServiceName=LobeChat%E7%A4%BE%E5%8C%BA%E7%89%88
[deploy-on-sealos-button-image]: https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg
[deploy-on-sealos-link]: https://cloud.sealos.io/?openapp=system-template%3FtemplateName%3Dlobe-chat
[deploy-on-sealos-link]: https://template.hzh.sealos.run/deploy?templateName=lobe-chat-db
[deploy-on-zeabur-button-image]: https://zeabur.com/button.svg
[deploy-on-zeabur-link]: https://zeabur.com/templates/VZGGTI
[discord-link]: https://discord.gg/AYFPHvv2jT

View File

@ -1,20 +1,20 @@
---
title: Deploy LobeChat on SealOS
title: Deploy LobeChat on Sealos
description: >-
Learn how to deploy LobeChat on SealOS with ease. Follow the provided steps to
Learn how to deploy LobeChat on Sealos with ease. Follow the provided steps to
set up LobeChat and start using it efficiently.
tags:
- Deploy LobeChat
- SealOS Deployment
- Sealos Deployment
- OpenAI API Key
- Custom Domain Binding
---
# Deploy LobeChat with SealOS
# Deploy LobeChat with Sealos
If you want to deploy LobeChat on SealOS, you can follow the steps below:
If you want to deploy LobeChat on Sealos, you can follow the steps below:
## SealOS Deployment Process
## Sealos Deployment Process
<Steps>
### Prepare your OpenAI API Key
@ -29,8 +29,8 @@ If you want to deploy LobeChat on SealOS, you can follow the steps below:
### Bind a custom domain (optional)
You can use the subdomain provided by SealOS, or choose to bind a custom domain. Currently, the domains provided by SealOS have not been contaminated, and can be directly accessed in most regions.
You can use the subdomain provided by Sealos, or choose to bind a custom domain. Currently, the domains provided by Sealos have not been contaminated, and can be directly accessed in most regions.
</Steps>
[deploy-button-image]: https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg
[deploy-link]: https://cloud.sealos.io/?openapp=system-template%3FtemplateName%3Dlobe-chat
[deploy-link]: https://template.usw.sealos.io/deploy?templateName=lobe-chat

View File

@ -1,19 +1,19 @@
---
title: 在 SealOS 上部署 LobeChat
description: 学习如何在 SealOS 上部署 LobeChat包括准备 OpenAI API Key、点击部署按钮、绑定自定义域名等操作。
title: 在 Sealos 上部署 LobeChat
description: 学习如何在 Sealos 上部署 LobeChat包括准备 OpenAI API Key、点击部署按钮、绑定自定义域名等操作。
tags:
- SealOS
- Sealos
- LobeChat
- OpenAI API Key
- 部署流程
- 自定义域名
---
# 使用 SealOS 部署
# 使用 Sealos 部署
如果想在 SealOS 上部署 LobeChat可以按照以下步骤进行操作
如果想在 Sealos 上部署 LobeChat可以按照以下步骤进行操作
## SealOS 部署流程
## Sealos 部署流程
<Steps>
### 准备好你的 OpenAI API Key
@ -28,7 +28,7 @@ tags:
### 绑定自定义域名(可选)
你可以使用 SealOS 提供的子域名,也可以选择绑定自定义域名。目前 SealOS 提供的域名还未被污染,大多数地区都可以直连。
你可以使用 Sealos 提供的子域名,也可以选择绑定自定义域名。目前 Sealos 提供的域名还未被污染,大多数地区都可以直连。
</Steps>
[deploy-button-image]: https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg

View File

@ -1,15 +1,94 @@
---
title: Deploy LobeChat on SealOS
title: Deploy Lobe Chat Database Version on Sealos
description: >-
Learn how to deploy LobeChat on SealOS with ease. Follow the provided steps to
Learn how to deploy LobeChat on Sealos with ease. Follow the provided steps to
set up LobeChat and start using it efficiently.
tags:
- Deploy LobeChat
- SealOS Deployment
- Sealos Deployment
- OpenAI API Key
- Custom Domain Binding
---
# Deploy LobeChat on SealOS
# Deploying Lobe Chat Database Version on Sealos
<Callout type="info">
This article assumes that you are familiar with the basic principles and processes of deploying
the LobeChat server database version, so it only includes content related to core environment
variable configuration. If you are not familiar with the deployment principles of the LobeChat
server database version, please refer to [Deploying Server
Database](/docs/self-hosting/server-database) first.
</Callout>
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.
Here is the process for deploying the Lobe Chat server database version on Sealos:
## Pre-Deployment Setup
**Step 1**Click the button below to deploy a Logto service:
[![](https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg)](https://template.usw.sealos.io/deploy?templateName=logto)
> Logto is an open-source identity and access management (IAM) platform, an open-source alternative to Auth0, designed to help developers quickly build secure and scalable login and registration systems and user identity systems.
**Step 2**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.
![Logto application deployment status on Sealos](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-app-deployment-status-sealos-en.png)
Click the public address corresponding to port 3002, you can use the public address to access the Logto service.
![Logto service public address](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-public-address-en.png)
**Step 3**Register a management account, then click the `Applications` menu on the left, enter the application list page. Click the `Create application` button in the upper right corner to create an application.
![Logto application list page](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-application-list.png)
Select `Next.js (App Router)` as the framework, then click the `Start building` button.
![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.
![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.
![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
**Step 1**Fill in the following three required parameters:
- `AUTH_LOGTO_ID`The App ID of the Logto application
- `AUTH_LOGTO_SECRET`The App Secret of the Logto application
- `AUTH_LOGTO_ISSUER`The Issuer endpoint of the Logto application
**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)
**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 2**In the `Settings` page, find the `Redirect URI` and `Post sign-out redirect URI` parameters, fill in the following values:
- Redirect URI: `https://<lobe-chat-db-public-address>/api/auth/callback/logto`
- Post sign-out redirect URI: `https://<lobe-chat-db-public-address>`
**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 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.
TODO

View File

@ -1,14 +1,114 @@
---
title: 在 SealOS 上部署 LobeChat
description: 学习如何在 SealOS 上部署 LobeChat包括准备 OpenAI API Key、点击部署按钮、绑定自定义域名等操作。
title: 在 Sealos 上部署 LobeChat 数据库版
description: 学习如何在 Sealos 上部署 LobeChat包括准备 OpenAI API Key、点击部署按钮、绑定自定义域名等操作。
tags:
- SealOS
- Sealos
- LobeChat
- OpenAI API Key
- 部署流程
- 自定义域名
---
# 使用 SealOS 部署 LobeChat 数据库版
# 使用 Sealos 部署 LobeChat 数据库版
TODO
<Callout type="info">
本文假设你已经熟悉 Lobe Chat
服务器数据库版的部署基本原理和流程,因此只包含与核心环境变量配置相关的内容。如果你对 Lobe Chat
服务器数据库版的部署原理不熟悉,请先参考[部署服务器数据库](/zh/docs/self-hosting/server-database)。
</Callout>
在 Sealos 的 Lobe Chat 数据库版应用中总共包含有以下四个服务:
- Logto 提供身份校验(需额外部署)
- 带有 Vector 插件的 PostgreSQL 来做数据存储和向量化
- 一个对象存储 Bucket
- LobeChat Database 的实例
这里是在 Sealos 上部署 Lobe Chat 服务器数据库版的流程:
## 预部署配置
在开始部署之前,您需要完成以下配置:
<Steps>
### 部署 Logto 服务
点击下方按钮部署一个 Logto 服务:
[![](https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg)](https://template.hzh.sealos.run/deploy?templateName=logto)
> Logto 是一个开源的身份与访问管理IAM平台是 Auth0 的开源替代方案,旨在帮助开发者快速构建安全、可扩展的登录注册系统和用户身份体系。
部署完成后,等待应用的所有组件状态都变成“运行中”,点击应用的【详情】按钮,进入应用详情页面。
![Logto 应用详情页面部署完成状态](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-app-deployment-status-sealos.png)
点击 3002 端口对应的公网地址,即可使用公网域名访问 Logto 服务。
![Logto 服务公网地址](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-public-address.png)
### 创建 Application
注册一个管理员账号,然后点击左侧的 `Applications` 菜单,进入应用列表页面。再点击右上角的 `Create application` 按钮创建应用。
![Logto 应用列表页面](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-application-list.png)
选择 `Next.js (App Router)` 作为框架,然后点击 `Start building` 按钮。
![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` 按钮就创建完成了。
![Logto 创建应用完成页面](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-create-application-done.png)
在 `Lobe Chat` 应用中找到以下三个参数,后面部署 Lobe Chat 数据库版时需要用到。
![Logto 应用详情页面](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/logto-app-detail.png)
</Steps>
## 部署 Lobe Chat 数据库版
点击下方按钮访问 Lobe Chat 数据库版应用部署页面:
[![](https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg)](https://template.hzh.sealos.run/deploy?templateName=lobe-chat-db)
填入三个必填参数:
- `AUTH_LOGTO_ID`Logto 应用的 App ID
- `AUTH_LOGTO_SECRET`Logto 应用的 App Secret
- `AUTH_LOGTO_ISSUER`Logto 应用的 Issuer endpoint
点击【部署】按钮,部署完成后,等待应用的所有组件状态都变成“运行中”,点击应用的【详情】按钮,进入应用详情页面。
![Lobe Chat 数据库版部署完成页面](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)
## 部署后配置
进入 Logto 的 `Applications` 页面,找到 `Lobe Chat` 应用,点击进入应用详情页面。
在 `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 数据库版的公网地址。
填完之后点击 `Save changes` 按钮保存配置。
现在通过 `https://<lobe-chat-db-public-address>` 访问 Lobe Chat 数据库版,点击左上角的头像,然后点击【登录 / 注册】按钮:
![Lobe Chat 数据库版登录页面](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)
注册完成后,即可使用 Logto 登录 Lobe Chat 数据库版。
![Lobe Chat 数据库版登录成功页面](https://raw.githubusercontent.com/labring-actions/templates/main/template/lobe-chat-db/images/lobe-chat-db-login-success.png)

View File

@ -2,13 +2,14 @@
title: 构建属于自己的 LobeChat - 自选部署平台
description: >-
选择适合自己的部署平台,构建个性化的 Lobe Chat。支持 Docker、Docker
Compose、Netlify、Railway、Repocloud、SealOS、Vercel 和 Zeabur 部署。
Compose、Netlify、Railway、Repocloud、Sealos、Vercel 和 Zeabur 部署。
tags:
- Lobe Chat
- 部署平台
- Docker
- Netlify
- Vercel
- Sealos
- 阿里云计算巢
- 个性化
- 腾讯云