78 lines
1.9 KiB
JSON
78 lines
1.9 KiB
JSON
{
|
|
"App": {
|
|
"CorsOrigins": [
|
|
"https://test.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": "${FEISHU_WEBHOOK}",
|
|
"BatchSize": 10,
|
|
"BatchIntervalSeconds": 10,
|
|
"EnableFeiShuExceptionSubscribe": true,
|
|
"Skip40X": false,
|
|
"WriteBody": true,
|
|
"WriteStack": true,
|
|
"MaxLength": 3000
|
|
},
|
|
"JwtSettings": {
|
|
"SecretKey": "${JWT_SECRET_KEY}",
|
|
"Issuer": "SimpleAdmin",
|
|
"Audience": "SimpleAdminClient",
|
|
"ExpiryInMinutes": 600,
|
|
"RefreshExpiryInDays": 7
|
|
},
|
|
"ObjectStorage": {
|
|
"Provider": "TencentCos",
|
|
"SignUrlsByDefault": true,
|
|
"DefaultSignedUrlExpiresSeconds": 3600,
|
|
"DefaultUploadExpiresSeconds": 600,
|
|
"TencentCos": {
|
|
"SecretId": "${COS_SECRET_ID}",
|
|
"SecretKey": "${COS_SECRET_KEY}",
|
|
"Region": "ap-guangzhou",
|
|
"Bucket": "test-1308574410",
|
|
"BaseUrl": "https://cos.ideship.com",
|
|
"UseHttps": true,
|
|
"SignUrls": true,
|
|
"DurationSecond": 600
|
|
}
|
|
}
|
|
}
|