fix: Update configuration structure to include Management section for WebSocket and HTTP server addresses
This commit is contained in:
@@ -9,16 +9,19 @@ import (
|
||||
var ConfigManager = &configManager{}
|
||||
|
||||
type Config struct {
|
||||
Admin int64 `yaml:"admin"`
|
||||
SteamApiKey string `yaml:"steam_api_key"`
|
||||
ProxyAddr string `yaml:"proxy_addr"`
|
||||
NapcatWsSrv string `yaml:"napcat_ws_srv"`
|
||||
NapcatHttpSrv string `yaml:"napcat_http_srv"`
|
||||
OpenaiApiKey string `yaml:"openai_api_key"`
|
||||
OpenaiApiBaseUrl string `yaml:"openai_api_base_url"`
|
||||
OpenaiModelName string `yaml:"openai_model_name"`
|
||||
OpenaiPrompt string `yaml:"openai_prompt"`
|
||||
WebServer struct {
|
||||
Management struct {
|
||||
Admin int64 `yaml:"admin"`
|
||||
ReportGroup int64 `yaml:"report_group"`
|
||||
ProxyAddr string `yaml:"proxy_addr"`
|
||||
NapcatWsSrv string `yaml:"napcat_ws_srv"`
|
||||
NapcatHttpSrv string `yaml:"napcat_http_srv"`
|
||||
} `yaml:"management"`
|
||||
WebServer struct {
|
||||
Token string `yaml:"token"`
|
||||
} `yaml:"web_server"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user