docs: 添加 Nginx 部署指南和飞书权限说明
新增: - NGINX.md: Nginx 反向代理部署指南(含 HTTPS 配置) - FEISHU_PERMISSIONS.md: 飞书权限配置指南 修正: - README.md: 更正飞书权限(im:file → im:message + im:resource) - 添加文档链接
This commit is contained in:
24
README.md
24
README.md
@@ -20,10 +20,14 @@
|
||||
|
||||
| 权限 | 说明 |
|
||||
|------|------|
|
||||
| `im:message` | 发送和接收消息 |
|
||||
| `im:file` | 文件上传下载 |
|
||||
| `im:message` | 发送和接收消息(包含文件消息) |
|
||||
| `im:resource` | 访问消息中的资源(文件、图片等) |
|
||||
| `contact:group:readonly` | 读取群组信息(可选) |
|
||||
|
||||
> **⚠️ 注意:** 飞书权限中没有 `im:file`,文件上传下载功能通过 `im:message` + `im:resource` 权限实现。
|
||||
>
|
||||
> 详细权限配置请查看 [`FEISHU_PERMISSIONS.md`](./FEISHU_PERMISSIONS.md)
|
||||
|
||||
### 3. 配置事件订阅
|
||||
|
||||
1. 进入"事件订阅"页面
|
||||
@@ -91,6 +95,19 @@ docker run -d \
|
||||
qiniu-feishu-bot
|
||||
```
|
||||
|
||||
### 🌐 Nginx 反向代理(生产环境推荐)
|
||||
|
||||
详细配置请查看 [`NGINX.md`](./NGINX.md)
|
||||
|
||||
```bash
|
||||
# 快速配置
|
||||
sudo nano /etc/nginx/sites-available/qiniu-bot
|
||||
# 复制 NGINX.md 中的配置
|
||||
sudo ln -s /etc/nginx/sites-available/qiniu-bot /etc/nginx/sites-enabled/
|
||||
sudo nginx -t
|
||||
sudo systemctl restart nginx
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## ⚙️ 配置
|
||||
@@ -176,7 +193,8 @@ qiniu-feishu-bot/
|
||||
├── start.bat # Windows 启动脚本
|
||||
├── README.md # 项目说明
|
||||
├── DEPLOY.md # 详细部署指南(Linux/macOS/Windows)
|
||||
└── WINDOWS.md # Windows 专用指南
|
||||
├── WINDOWS.md # Windows 专用指南
|
||||
└── NGINX.md # Nginx 反向代理部署指南
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user