|
1 | 1 | ---
|
2 |
| -title: Deploy LobeChat on SealOS |
| 2 | +title: Deploy Lobe Chat Database Version on Sealos |
3 | 3 | description: >-
|
4 |
| - Learn how to deploy LobeChat on SealOS with ease. Follow the provided steps to |
| 4 | + Learn how to deploy LobeChat on Sealos with ease. Follow the provided steps to |
5 | 5 | set up LobeChat and start using it efficiently.
|
6 | 6 | tags:
|
7 | 7 | - Deploy LobeChat
|
8 |
| - - SealOS Deployment |
| 8 | + - Sealos Deployment |
9 | 9 | - OpenAI API Key
|
10 | 10 | - Custom Domain Binding
|
11 | 11 | ---
|
12 | 12 |
|
13 |
| -# Deploy LobeChat on SealOS |
| 13 | +# Deploying Lobe Chat Database Version on Sealos |
| 14 | + |
| 15 | +<Callout type="info"> |
| 16 | + This article assumes that you are familiar with the basic principles and processes of deploying |
| 17 | + the LobeChat server database version, so it only includes content related to core environment |
| 18 | + variable configuration. If you are not familiar with the deployment principles of the LobeChat |
| 19 | + server database version, please refer to [Deploying Server |
| 20 | + Database](/docs/self-hosting/server-database) first. |
| 21 | +</Callout> |
| 22 | + |
| 23 | +The application on Sealos includes 4 services: |
| 24 | + |
| 25 | +- Logto for authrization(need to deploy separately). |
| 26 | +- PostgreSQL with Vector plugin for data storage and indexing. |
| 27 | +- One object storage Bucket. |
| 28 | +- Lobe Chat database version. |
| 29 | + |
| 30 | +Here is the process for deploying the Lobe Chat server database version on Sealos: |
| 31 | + |
| 32 | +## Pre-Deployment Setup |
| 33 | + |
| 34 | +**Step 1**:Click the button below to deploy a Logto service: |
| 35 | + |
| 36 | +[](https://template.usw.sealos.io/deploy?templateName=logto) |
| 37 | + |
| 38 | +> 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. |
| 39 | +
|
| 40 | +**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. |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | +Click the public address corresponding to port 3002, you can use the public address to access the Logto service. |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | +**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. |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | +Select `Next.js (App Router)` as the framework, then click the `Start building` button. |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | +**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. |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | +**Step 5**:In the `Lobe Chat` application, find the following three parameters, which will be used later when deploying the Lobe Chat database version. |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | +## Deploy Lobe Chat Database Version |
| 65 | + |
| 66 | +**Step 1**:Fill in the following three required parameters: |
| 67 | + |
| 68 | +- `AUTH_LOGTO_ID`:The App ID of the Logto application |
| 69 | +- `AUTH_LOGTO_SECRET`:The App Secret of the Logto application |
| 70 | +- `AUTH_LOGTO_ISSUER`:The Issuer endpoint of the Logto application |
| 71 | + |
| 72 | +**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. |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | +**Step 3**:Find the public address, copy it, and use it later. |
| 77 | + |
| 78 | +## Post-Deployment Configuration |
| 79 | + |
| 80 | +**Step 1**:Enter the `Applications` page of Logto, find the `Lobe Chat` application, click to enter the application details page. |
| 81 | + |
| 82 | +**Step 2**:In the `Settings` page, find the `Redirect URI` and `Post sign-out redirect URI` parameters, fill in the following values: |
| 83 | + |
| 84 | +- Redirect URI: `https://<lobe-chat-db-public-address>/api/auth/callback/logto` |
| 85 | +- Post sign-out redirect URI: `https://<lobe-chat-db-public-address>` |
| 86 | + |
| 87 | +**Step 3**:Click the `Save changes` button to save the configuration. |
| 88 | + |
| 89 | +**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. |
| 90 | + |
| 91 | +**Step 5**:Next, you will be redirected to the Logto login page, click the [Create account] button to register an account. |
| 92 | + |
| 93 | +**Step 6**:After registration, you can use Logto to login to the Lobe Chat database version. |
14 | 94 |
|
15 |
| -TODO |
|
0 commit comments