84 lines
2.5 KiB
JSON
84 lines
2.5 KiB
JSON
{
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft": "Warning",
|
|
"Microsoft.Hosting.Lifetime": "Information"
|
|
}
|
|
},
|
|
"CloudBuilder": {
|
|
"DbContexts": {
|
|
"MasterDbContext": {
|
|
"DbContextTypeName": "MasterDbContext",
|
|
"ConnectionString": "Server=localhost\\SQLEXPRESS;Database=Furion;User=sa;Password=owen123456;MultipleActiveResultSets=True;TrustServerCertificate=true",
|
|
"DatabaseType": "SqlServer",
|
|
"LazyLoadingProxiesEnabled": true,
|
|
"AuditEntityEnabled": true,
|
|
"AutoMigrationEnabled": true
|
|
},
|
|
"SecondaryDbContext": {
|
|
"DbContextTypeName": "SecondaryDbContext",
|
|
"ConnectionString": "Server=localhost\\SQLEXPRESS;Database=Furion_dev;User=sa;Password=owen123456;MultipleActiveResultSets=True;TrustServerCertificate=true",
|
|
"DatabaseType": "SqlServer",
|
|
"LazyLoadingProxiesEnabled": true,
|
|
"AuditEntityEnabled": true,
|
|
"AutoMigrationEnabled": true
|
|
}
|
|
},
|
|
"MailSender": {
|
|
"Host": "smtp.mxhichina.com",
|
|
"Port": 587,
|
|
"EnableSsl": true,
|
|
"DisplayName": "OSharp邮件发送",
|
|
"UserName": "osharpsender@66soft.net",
|
|
"Password": "OSharp147963"
|
|
},
|
|
"Jwt": {
|
|
"Issuer": "Cloud Builder identity",
|
|
"Audience": "Cloud Builder",
|
|
"Secret": "{8619F7C3-B53C-4B85-99F0-983D351ECD82}",
|
|
"AccessExpireMins": 1440, //1天过期
|
|
"RefreshExpireMins": 10080, // 7天
|
|
"IsRefreshAbsoluteExpired": false
|
|
},
|
|
"Redis": {
|
|
"Configuration": "localhost",
|
|
"InstanceName": "CloudBuilder:"
|
|
}
|
|
},
|
|
"IpRateLimiting": {
|
|
"EnableEndpointRateLimiting": true, //False: globally executed, true: executed for each
|
|
"StackBlockedRequests": false, //False: Number of rejections should be recorded on another counter
|
|
"RealIpHeader": "X-Real-IP",
|
|
"ClientIdHeader": "X-ClientId",
|
|
"IpWhitelist": [], //白名单
|
|
"EndpointWhitelist": [],
|
|
"ClientWhitelist": [],
|
|
"HttpStatusCode": 200,
|
|
"QuotaExceededResponse": {
|
|
"Content": "{{\"code\":429,\"msg\":\"访问过于频繁,请稍后重试\",\"data\":null}}",
|
|
"ContentType": "application/json",
|
|
"StatusCode": 200
|
|
},
|
|
"GeneralRules": [
|
|
{
|
|
"Endpoint": "*",
|
|
"Period": "1s",
|
|
"Limit": 5
|
|
},
|
|
{
|
|
"Endpoint": "*",
|
|
"Period": "1m",
|
|
"Limit": 50
|
|
},
|
|
{
|
|
"Endpoint": "*",
|
|
"Period": "12h",
|
|
"Limit": 500
|
|
}
|
|
]
|
|
|
|
},
|
|
"AllowedHosts": "*"
|
|
}
|