config/idwms/common.json
2026-09-07 17:53:17 +08:00

61 lines
1.5 KiB
JSON

{
"App": {
"CorsOrigins": [
"https://ideship.com"
]
},
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft.AspNetCore": "Information"
}
},
"Enrich": [
"FromLogContext",
"WithMachineName",
"WithProcessId",
"WithThreadId"
],
"WriteTo": [
{
"Name": "Async",
"Args": {
"configure": [
{
"Name": "Console",
"Args": {
"outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}] {SourceContext} - {Message:lj}{NewLine}{Exception}",
"formatter": "Serilog.Formatting.Json.JsonFormatter, Serilog"
}
},
{
"Name": "FeiShu",
"Args": {
"outputTemplate": "{SourceContext} - {Message:lj}{NewLine}{Exception}",
"minimumLogLevel": "Error"
}
}
]
}
}
]
},
"FeiShuNotice": {
"Webhook": "https://open.feishu.cn/open-apis/bot/v2/hook/94e24bce-619d-4b3b-936c-e206353ce802",
"BatchSize": 10,
"BatchIntervalSeconds": 10,
"EnableFeiShuExceptionSubscribe": true,
"Skip40X": false,
"WriteBody": true,
"WriteStack": true,
"MaxLength": 3000
},
"JwtSettings": {
"SecretKey": "YourSuperSecretKeyThatIsAtLeast32CharactersLong!",
"Issuer": "SimpleAdmin",
"Audience": "SimpleAdminClient",
"ExpiryInMinutes": 600,
"RefreshExpiryInDays": 7
}
}