You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+79-8Lines changed: 79 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -19,21 +19,24 @@ Channel Monitor is a tool designed for monitoring OneAPI/NewAPI channels. It dir
19
19
-[x] Request rate limiting at the second level
20
20
-[x] Support Uptime Kuma, push URL during testing to visualize model availability
21
21
-[x] Support update notifications via SMTP email and Telegram Bot
22
+
-[x] Support both JSON and YAML configuration formats
22
23
23
24
## Installation
24
25
25
26
### Binary
26
27
27
-
Download the latest version of the binary file from the [Releases](https://github.com/DullJZ/ChannelMonitor/releases) page. After configuring `config.json` in the same directory, you can run it. It is recommended to use tools like `screen` or `nohup` to run it in the background.
28
+
Download the latest version of the binary file from the [Releases](https://github.com/DullJZ/ChannelMonitor/releases) page. After configuring `config.json`or `config.yaml`in the same directory, you can run it. It is recommended to use tools like `screen` or `nohup` to run it in the background.
28
29
Note ⚠️: If you need to use an SQLite database, please use the Docker solution or compile yourself after enabling CGO.
The configuration file is `config.json` located in the same directory, with the following format:
91
+
The configuration file can be either `config.json`, `config.yaml`, or `config.yml` in the same directory. The program will automatically detect and use the available configuration file in the order of `config.yaml` -> `config.yml` -> `config.json`.
92
+
93
+
### JSON Format
94
+
95
+
<details>
96
+
<summary>Click to expand/collapse JSON configuration example</summary>
81
97
82
98
```json
83
99
{
@@ -128,6 +144,61 @@ The configuration file is `config.json` located in the same directory, with the
128
144
}
129
145
```
130
146
147
+
</details>
148
+
149
+
### YAML Format
150
+
151
+
<details>
152
+
<summary>Click to expand/collapse YAML configuration example</summary>
0 commit comments