Add .env configuration for Confluence settings
This commit is contained in:
15
README.md
15
README.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user