forked from xiongyuxing/tiku-backend.net
58 lines
1.2 KiB
JSON
58 lines
1.2 KiB
JSON
{
|
|
"Serilog": {
|
|
"MinimumLevel": {
|
|
"Default": "Information",
|
|
"Override": {
|
|
"Microsoft": "Warning",
|
|
"Microsoft.AspNetCore": "Warning",
|
|
"Microsoft.EntityFrameworkCore.Database.Command": "Warning",
|
|
"System.Net.Http.HttpClient": "Warning"
|
|
}
|
|
},
|
|
"Enrich": [
|
|
"FromLogContext",
|
|
"WithMachineName",
|
|
"WithThreadId"
|
|
],
|
|
"WriteTo": [
|
|
{
|
|
"Name": "Console",
|
|
"Args": {
|
|
"outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}] {SourceContext} {Message:lj} {Properties:j}{NewLine}{Exception}"
|
|
}
|
|
}
|
|
],
|
|
"Properties": {
|
|
"Application": "Tiku.Api"
|
|
}
|
|
},
|
|
"Cors": {
|
|
"AllowedOrigins": [],
|
|
"AllowedHeaders": [
|
|
"Authorization",
|
|
"Content-Type",
|
|
"x-tenant-code"
|
|
],
|
|
"AllowedMethods": [
|
|
"GET",
|
|
"POST",
|
|
"PUT",
|
|
"PATCH",
|
|
"DELETE",
|
|
"OPTIONS"
|
|
],
|
|
"AllowCredentials": false
|
|
},
|
|
"Security": {
|
|
"Jwt": {
|
|
"Issuer": "tiku-backend",
|
|
"Audience": "tiku-api",
|
|
"SigningKey": "development-only-tiku-signing-key-change-before-production",
|
|
"AccessTokenMinutes": 30,
|
|
"RefreshTokenDays": 30,
|
|
"ValidateSessions": true
|
|
}
|
|
},
|
|
"AllowedHosts": "*"
|
|
}
|