Add .env configuration for Confluence settings

This commit is contained in:
2025-12-29 01:15:57 +08:00
parent 04b7b3bb36
commit e11e378081
5 changed files with 63 additions and 22 deletions

View File

@@ -36,19 +36,22 @@ OrbitIn/
### 安装依赖
```bash
pip install requests beautifulsoup4
pip install requests beautifulsoup4 python-dotenv
```
### 配置 Confluence
`main.py` 中配置:
`.env` 文件中配置:
```python
CONFLUENCE_URL = "https://your-confluence.atlassian.net"
CONFLUENCE_USER = "your-email@example.com"
CONFLUENCE_API_TOKEN = "your-api-token"
```bash
# .env
CONFLUENCE_BASE_URL=https://your-confluence.atlassian.net/rest/api
CONFLUENCE_TOKEN=your-api-token
CONFLUENCE_CONTENT_ID=155764524
```
参考 `.env.example` 文件创建 `.env` 文件。
### 使用方法
```bash