-
Notifications
You must be signed in to change notification settings - Fork 747
/
appsettings.Development.json
158 lines (158 loc) · 5.41 KB
/
appsettings.Development.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
{
"Logging": {
"LogLevel": {
"Default": "Information",
"OSharp": "Information",
"Liuliu": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Warning"
}
},
"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=.;Database=osharpns-api-dev;User Id=sa;Password=Abc123456!;TrustServerCertificate=True;",
"DatabaseType": "SqlServer",
"AuditEntityEnabled": true,
"AutoMigrationEnabled": true
}
//,
//"MySql": {
// "DbContextTypeName": "OSharp.Entity.DefaultDbContext,OSharp.EntityFrameworkCore",
// "ConnectionString": "Server=127.0.0.1;UserId=root;Password=abc123456;Database=osharpns-dev;charset='utf8';Allow User Variables=True",
// // "Slaves": [
// // {
// // "Name": "Slave01",
// // "Weight": 2,
// // "ConnectionString": "Server=127.0.0.1;UserId=root;Password=abc123456;Database=osharpns-dev-slave01;charset='utf8';Allow User Variables=True"
// // },
// // {
// // "Name": "Slave02",
// // "Weight": 2,
// // "ConnectionString": "Server=127.0.0.1;UserId=root;Password=abc123456;Database=osharpns-dev-slave02;charset='utf8';Allow User Variables=True"
// // }
// // ],
// "SlaveSelectorName": "Weight",
// "DatabaseType": "MySql",
// "LazyLoadingProxiesEnabled": true,
// "AuditEntityEnabled": true,
// "AutoMigrationEnabled": true
//}
//,
//"Sqlite": {
// "DbContextTypeName": "OSharp.Entity.DefaultDbContext,OSharp.EntityFrameworkCore",
// "ConnectionString": "data source=bin/Debug/osharpns.db",
// "DatabaseType": "Sqlite",
// "LazyLoadingProxiesEnabled": true,
// "AuditEntityEnabled": true,
// "AutoMigrationEnabled": true
//}
//,
//"PostgreSql": {
// "DbContextTypeName": "OSharp.Entity.DefaultDbContext,OSharp.EntityFrameworkCore",
// "ConnectionString": "User ID=postgres;Password=abc123456;Host=localhost;Port=5432;Database=osharpns.demo-dev3",
// "DatabaseType": "PostgreSql",
// "LazyLoadingProxiesEnabled": true,
// "AuditEntityEnabled": true,
// "AutoMigrationEnabled": true
//}
},
"OAuth2": {
//"QQ": {
// "ClientId": "你的QQ互联项目AppId",
// "ClientSecret": "你的QQ互联项目AppKey",
// "Enabled": false
//},
//"Microsoft": {
// "ClientId": "你的微软项目ClientId",
// "ClientSecret": "你的微软项目ClientSecret",
// "Enabled": false
//},
//"GitHub": {
// "ClientId": "你的GitHub项目ClientId",
// "ClientSecret": "你的GitHub项目ClientSecret",
// "Enabled": false
//}
},
"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.Dev:"
},
"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": ""
}
}
}