doc: add example for .env

This commit is contained in:
jiajingbin 2025-01-23 15:07:27 +08:00
parent 3b51d7bafb
commit fb682e441c
2 changed files with 32 additions and 0 deletions

View File

@ -35,6 +35,22 @@ vim .env
...
```
- .env 样例
```bash
# 过滤器排除 IP公司网络出口 IP
EXCLUDE_IP="192.168.1.10"
# 英文官网服务器 IP
SERVER_IP="192.168.1.11"
# 内网提供 HTTP 服务的 IP 及端口,用于提供 HTML 报告浏览
HTTP_SERV_IP="192.168.1.12"
HTTP_SERV_PORT=8080
# 飞书群机器人 webhook 地址
FEISHU_MSG_URL="https://open.feishu.cn/open-apis/bot/v2/hook/*******"
# 负责人
OWNER="Jayden Jia"
```
# 3. 运行
在 $DIR/telemetry/crash-report 目录中,有类似文件名为 202501**.txt 的一些文件。Python 脚本会将从这些文本文件中收集崩溃信息,并将报告发送到您的飞书机器人群组中。

View File

@ -35,6 +35,22 @@ vim .env
...
```
- Example for .env
```bash
# Filter to exclude IP (Company network export IP)
EXCLUDE_IP="192.168.1.10"
# Official website server IP
SERVER_IP="192.168.1.11"
# Internal network providing HTTP service IP and port, used for HTML report browsing
HTTP_SERV_IP="192.168.1.12"
HTTP_SERV_PORT=8080
# Webhook address for feiShu group bot
FEISHU_MSG_URL="https://open.feishu.cn/open-apis/bot/v2/hook/*******"
# Owner
OWNER="Jayden Jia"
```
# 3. Running
In `$DIR/telemetry/crash-report` directory, there are several files with names like 202501**.txt. The python script will collect crash information from these text files and send report to your Feishu bot group.