-
Notifications
You must be signed in to change notification settings - Fork 753
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
117 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,99 @@ | ||
{ | ||
{ | ||
"Logging": { | ||
"LogLevel": { | ||
"Default": "Information", | ||
"Microsoft": "Warning", | ||
"Microsoft.Hosting.Lifetime": "Information" | ||
} | ||
}, | ||
"AllowedHosts": "*" | ||
"AllowedHosts": "*", | ||
"CaptchaOptions": { | ||
"CaptchaType": 9, // 验证码类型 | ||
"CodeLength": 4, // 验证码长度, 要放在CaptchaType设置后 当类型为算术表达式时,长度代表操作的个数 | ||
"ExpirySeconds": 60, // 验证码过期秒数 | ||
"IgnoreCase": true, // 比较时是否忽略大小写 | ||
"StoreageKeyPrefix": "Common:Captcha:", // 存储键前缀 | ||
"ImageOption": { | ||
"Animation": true, // 是否启用动画 | ||
"FontSize": 32, // 字体大小 | ||
"Width": 100, // 验证码宽度 | ||
"Height": 40, // 验证码高度 | ||
"BubbleMinRadius": 5, // 气泡最小半径 | ||
"BubbleMaxRadius": 15, // 气泡最大半径 | ||
"BubbleCount": 5, // 气泡数量 | ||
"BubbleThickness": 1.5, // 气泡边沿厚度 | ||
"InterferenceLineCount": 4, // 干扰线数量 | ||
"FontFamily": "actionj" // 包含中文时请使用kaiti。可设置字体:actionj,epilog,fresnel,headache,lexo,prefix,progbot,ransom,robot,scandal,kaiti | ||
} | ||
}, | ||
"OSharp": { | ||
"DbContexts": { | ||
"SqlServer": { | ||
"DbContextTypeName": "OSharp.Entity.DefaultDbContext,OSharp.EntityFrameworkCore", | ||
"ConnectionString": "Server=127.0.0.1;Database=osharpns-api-dev;User Id=sa;Password=Abc123456!;TrustServerCertificate=True;", | ||
"DatabaseType": "SqlServer", | ||
"AuditEntityEnabled": true, | ||
"AutoMigrationEnabled": true | ||
} | ||
}, | ||
"MailSender": { | ||
"Host": "smtp.66soft.net", | ||
"Port": 465, | ||
"EnableSsl": true, | ||
"DisplayName": "OSharp邮件发送", | ||
"UserName": "osharpsender@66soft.net", | ||
"Password": "Cculm3WYoAjuEbwl" | ||
}, | ||
"Jwt": { | ||
"Issuer": "osharp identity", | ||
"Audience": "osharp api client", | ||
"Secret": "{8619F7C3-B53C-4B85-99F0-983D351ECD82}", | ||
"AccessExpireMins": 20, | ||
"RefreshExpireMins": 10080, // 7天 | ||
"IsRefreshAbsoluteExpired": false, | ||
"Enabled": true | ||
}, | ||
"Cookie": { | ||
"Enabled": true | ||
}, | ||
"Mvc": { | ||
"IsLowercaseJsonProperty": true, | ||
"IsLowercaseUrls": true | ||
}, | ||
"Cors": { | ||
"PolicyName": "MyCors", | ||
"AllowAnyHeader": true, | ||
"WithMethods": [ "POST", "PUT", "DELETE" ], | ||
"WithOrigins": [], | ||
"Enabled": true | ||
}, | ||
"Redis": { | ||
"Configuration": "localhost", | ||
"InstanceName": "Liuliu.Demo:" | ||
}, | ||
"Swagger": { | ||
"Endpoints": [ | ||
{ | ||
"Title": "框架API", | ||
"Version": "v1", | ||
"Url": "/swagger/v1/swagger.json" | ||
}, | ||
{ | ||
"Title": "业务API", | ||
"Version": "buss", | ||
"Url": "/swagger/buss/swagger.json" | ||
} | ||
], | ||
"RoutePrefix": "swagger", | ||
"IsHideSchemas": false, | ||
"MiniProfiler": false, | ||
"Enabled": true | ||
}, | ||
"Hangfire": { | ||
"WorkerCount": 20, | ||
//"StorageConnectionString": "Server=.;Database=osharpns.hangfire-dev;User Id=sa;Password=Abc123456!;MultipleActiveResultSets=true", | ||
"DashboardUrl": "/hangfire", | ||
"Roles": "" | ||
} | ||
} | ||
} |