Allow config path from FOURTH_CONFIG

This commit is contained in:
KernelErr
2021-11-01 16:06:47 +08:00
parent 754a5af794
commit bff92738d5
3 changed files with 6 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ $ cargo install fourth
## 配置
Fourth使用yaml格式的配置文件默认情况下会读取`/etc/fourth/config.yaml`,如下是一个最小有效配置:
Fourth使用yaml格式的配置文件默认情况下会读取`/etc/fourth/config.yaml`您也可以设置自定义路径到环境变量`FOURTH_CONFIG`如下是一个最小有效配置:
```yaml
version: 1