配置
配置文件总是从当前工作目录的 ./appsettings.jsonc
解析
其是一个 JSONC 文件, 支持注释和尾随逗号
json5
{
"$schema": "https://raw.githubusercontent.com/LagrangeDev/LagrangeV2/refs/heads/main/Lagrange.Milky/Resources/appsettings_schema.json",
"Logging": { // 日志相关配置
"LogLevel": {
"Default": "Information",
},
},
"Core": { // Lagrange.Core 相关配置
"Server": {
"AutoReconnect": true,
"UseIPv6Network": false,
"GetOptimumServer": true,
},
"Signer": {
"Base": "https://sign.lagrangecore.org/api/sign",
"Version": "30366",
"ProxyUrl": null,
},
"Login": {
"Uin": 0,
"Password": null,
"DeviceName": "LGR-Milky",
"AutoReLogin": true,
"CompatibleQrCode": false,
"UseOnlineCaptchaResolver": true,
},
},
"Milky": { // Milky 相关配置
"Host": "127.0.0.1",
"Port": 3000,
"Prefix": "/",
"UseWebSocket": true,
"WebHook": null
},
}