- 所有空 catch 块补全日志记录,统一使用 Serilog/AppLog - 按场景分级:Error(意外失败)、Warning(次要问题)、Information(预期内) - 端口 HttpPort/HttpsPort 抽离到 appsettings.json Server 配置节 - QrCodeService 通过 IConfiguration 读取端口,消除硬编码 - 前端通过 Vite proxy 转发 /api,http.ts 统一使用 origin 地址 - 移除所有 Debug.WriteLine 和 Serilog.Log.Debug 日志 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
29 lines
632 B
JSON
29 lines
632 B
JSON
{
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft.AspNetCore": "Warning"
|
|
}
|
|
},
|
|
"AllowedHosts": "*",
|
|
"Server": {
|
|
"HttpPort": 5206,
|
|
"HttpsPort": 7165
|
|
},
|
|
"Jwt": {
|
|
"Issuer": "FileShare-API",
|
|
"Audience": "FileShare-Client",
|
|
"SigningKey": "change-this-development-signing-key-at-least-32-bytes",
|
|
"AccessTokenMinutes": 60,
|
|
"RefreshTokenDays": 30
|
|
},
|
|
"DatabaseConfiguration": {
|
|
"Provider": "SQLite",
|
|
"ConnectionString": "Data Source=app.db",
|
|
"AutoMigrate": true,
|
|
"RecreateDatabase": false,
|
|
"EnableDetailedLog": false,
|
|
"Timeout": 30
|
|
}
|
|
}
|