208
This commit is contained in:
@@ -30,6 +30,7 @@ type Config struct {
|
||||
Invite InviteConfig `yaml:"Invite"`
|
||||
Kutt KuttConfig `yaml:"Kutt"`
|
||||
OpenInstall OpenInstallConfig `yaml:"OpenInstall"`
|
||||
Loki LokiConfig `yaml:"Loki"`
|
||||
Telegram Telegram `yaml:"Telegram"`
|
||||
Log Log `yaml:"Log"`
|
||||
Trace trace.Config `yaml:"Trace"`
|
||||
@@ -227,6 +228,12 @@ type OpenInstallConfig struct {
|
||||
ApiKey string `yaml:"ApiKey" default:""` // OpenInstall 数据接口 ApiKey
|
||||
}
|
||||
|
||||
// LokiConfig Loki 日志查询配置
|
||||
type LokiConfig struct {
|
||||
Enable bool `yaml:"Enable" default:"false"` // 是否启用 Loki 查询
|
||||
URL string `yaml:"URL" default:"http://localhost:3100"` // Loki 服务地址
|
||||
}
|
||||
|
||||
type Telegram struct {
|
||||
Enable bool `yaml:"Enable" default:"false"`
|
||||
BotID int64 `yaml:"BotID" default:""`
|
||||
|
||||
Reference in New Issue
Block a user