mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-03-12 07:00:45 +08:00
📝 环境变量和部署文档新增 Redis 部分
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -21,6 +21,8 @@ dist
|
|||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
|
pnpm-lock.yaml
|
||||||
|
pnpm-workspace.yaml
|
||||||
|
|
||||||
# env
|
# env
|
||||||
*.env
|
*.env
|
||||||
|
|||||||
@@ -108,12 +108,22 @@ SERVER_PORT=8082
|
|||||||
普通用户2:**usermail2@openisle.com/123456**
|
普通用户2:**usermail2@openisle.com/123456**
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
4. 处理完环境问题直接跑起来就能通了
|
|
||||||
|
|
||||||

|
#### 配置 Redis
|
||||||
|
|
||||||
|
填写环境变量 `.env` 中的 Redis 相关配置并启动 Redis
|
||||||
|
|
||||||
|
```ini
|
||||||
|
REDIS_HOST=<Redis 地址>
|
||||||
|
REDIS_PORT=<Redis 端口>
|
||||||
|
```
|
||||||
|
|
||||||
|
处理完环境问题直接跑起来就能通了
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
### Docker 环境
|
### Docker 环境
|
||||||
|
|
||||||
#### 配置环境变量
|
#### 配置环境变量
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
|||||||
@@ -13,6 +13,10 @@ JWT_RESET_SECRET=<jwt reset secret>
|
|||||||
JWT_INVITE_SECRET=<jwt invite secret>
|
JWT_INVITE_SECRET=<jwt invite secret>
|
||||||
JWT_EXPIRATION=2592000000
|
JWT_EXPIRATION=2592000000
|
||||||
|
|
||||||
|
# === Redis ===
|
||||||
|
REDIS_HOST=<Redis 地址>
|
||||||
|
REDIS_PORT=<Redis 端口>
|
||||||
|
|
||||||
# === Resend ===
|
# === Resend ===
|
||||||
RESEND_API_KEY=<你的resend-api-key>
|
RESEND_API_KEY=<你的resend-api-key>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user