mirror of
https://github.com/lobehub/lobehub
synced 2026-04-21 17:47:27 +00:00
* feat: Redesign doc
* chore: uopdate site
* chore: uopdate site
* chore: uopdate site
* chore: uopdate site
* chore: uopdate site
* feat: Uopdate content
* chore: New doc
* chore: Update content
* chore: Update content
* chore: add images
* chore: add images
* chore: add images
* chore: add images
* feat: Add more images
* feat: Add more images
* fix: Cannot reach end
* chore: Update content
* chore: Update content
* chore: Update content
* chore: Update content
* chore: Update content
* Revise README content and structure
Updated README to reflect changes in project description and removed outdated notes.
* Revise 'Getting Started' and TOC in README
Updated the 'Getting Started' section and modified the table of contents.
* chore: Update content
* Revise README structure and content
Updated the Getting Started section and removed the Table of Contents. Adjusted the Local Development instructions.
* Remove custom themes section from README
Removed section about custom themes from README.
* Update README.md
* Refine introduction and highlight cloud version
Updated wording for clarity and added recommendation for cloud version.
* chore: Update content
* chore: Update content
* chore: Update content
* chore: Update content
* chore: Update content
* chore: Update content
* chore: Update content
* fix: add missing translation
* 🔀 chore: Move README changes to feat/readme branch
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix: add missing translation
* chore: update cdn
* docs: add migration guide from v1.x local database to v2.x and update help sections
Signed-off-by: Innei <tukon479@gmail.com>
* fix: add missing translation
* fix: add missing images
* fix: add missing changelogs
* fix: add missing changelogs
* fix: add missing changelogs
* fix: add missing changelogs
* fix: add missing changelogs
* style: update cdn
---------
Signed-off-by: Innei <tukon479@gmail.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: canisminor1990 <i@canisminor.cc>
Co-authored-by: Innei <tukon479@gmail.com>
97 lines
5.4 KiB
Text
97 lines
5.4 KiB
Text
---
|
||
title: Deploy Lobe Chat 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.
|
||
tags:
|
||
- Deploy LobeHub
|
||
- Sealos Deployment
|
||
- OpenAI API Key
|
||
- Custom Domain Binding
|
||
---
|
||
|
||
# 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 LobeHub 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 LobeHub
|
||
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://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.
|
||
|
||

|
||
|
||
Click the public address corresponding to port 3002, you can use the public address to access the Logto service.
|
||
|
||

|
||
|
||
**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.
|
||
|
||

|
||
|
||
Select `Next.js (App Router)` as the framework, then click the `Start building` button.
|
||
|
||

|
||
|
||
**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 5**:In the `Lobe Chat` application, find the following three parameters, which will be used later when deploying the Lobe Chat database version.
|
||
|
||

|
||
|
||
## Deploy Lobe Chat Database Version
|
||
|
||
**Step 1**:Click the button below to visit the Lobe Chat database version application deployment page:
|
||
|
||
[](https://template.usw.sealos.io/deploy?templateName=lobe-chat-db)
|
||
|
||
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.
|
||
|
||

|
||
|
||
**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.
|