docs: 修正 README.md 中的端口为 3030

- Docker 端口映射
- Nginx 配置示例
- 环境变量示例
This commit is contained in:
饭团
2026-03-05 15:44:46 +08:00
parent 8e1462a6db
commit 5294bf49d8

View File

@@ -105,7 +105,7 @@ docker build -t qiniu-feishu-bot .
# 运行容器 # 运行容器
docker run -d \ docker run -d \
--name qiniu-bot \ --name qiniu-bot \
-p 3000:3000 \ -p 3030:3030 \
--env-file .env \ --env-file .env \
-v $(pwd)/config:/app/config \ -v $(pwd)/config:/app/config \
qiniu-feishu-bot qiniu-feishu-bot
@@ -114,7 +114,7 @@ docker run -d \
### 🌐 Nginx 反向代理(生产环境推荐) ### 🌐 Nginx 反向代理(生产环境推荐)
**特点:** **特点:**
- ✅ 不占用 80/443 端口Node.js 应用使用 3000 端口) - ✅ 不占用 80/443 端口Node.js 应用使用 3030 端口)
- ✅ 支持多域名部署(与其他应用共享 Nginx - ✅ 支持多域名部署(与其他应用共享 Nginx
- ✅ 支持 HTTPS 配置 - ✅ 支持 HTTPS 配置
@@ -138,7 +138,7 @@ server {
server_name qiniu.your-domain.com; # 独立域名 server_name qiniu.your-domain.com; # 独立域名
location /feishu/event { location /feishu/event {
proxy_pass http://127.0.0.1:3000/feishu/event; proxy_pass http://127.0.0.1:3030/feishu/event;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
} }
@@ -176,7 +176,7 @@ QINIU_REGION=z0
QINIU_DOMAIN=https://your-cdn.com QINIU_DOMAIN=https://your-cdn.com
# 服务配置 # 服务配置
PORT=3000 PORT=3030
NODE_ENV=production NODE_ENV=production
``` ```