Skip to content

Commit

Permalink
docs: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxuan6 committed Jul 25, 2024
1 parent 4f6e0e1 commit 255ede7
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

## ⚙️ 配置说明

### 2. 按照下面格式修改 `config.cfg` 文件中的内容。
### Notify 通知配置文件 `env.yaml`

修改成自己的配置

### 按照下面格式修改 `config.cfg` 文件中的内容。

> `baidu` 自定义名称(支持大小写),不能有空格
Expand All @@ -23,8 +27,13 @@ bai du=https://www.baidu.com

## Docker run

`config.cfg` 修改为自己的网站
`config.cfg` `env.yaml` 直接复制(不修改使用默认值),环境变量 `VERBOSE``true` 时打印日志,默认为 `false`.

```docker
docker run --name service-status -v $(pwd)/config.cfg:/etc/caddy/config.cfg -p 8080:8080 -d ghcr.io/xiaoxuan6/service-status/service-status:latest
docker run --name service-status \
-v $(pwd)/config.cfg:/etc/caddy/config.cfg \
-v $(pwd)/env.yaml:/etc/caddy/env.yaml \
-e VERBOSES=true \
-p 8080:8080 \
-d ghcr.io/xiaoxuan6/service-status/service-status:latest
```

0 comments on commit 255ede7

Please sign in to comment.