2023-12-11 09:55:12 +08:00
|
|
|
|
{
|
2025-02-22 15:26:00 +08:00
|
|
|
|
//多租户,支持多库,DbConnOptions会自动创建到默认租户,支持配置文件方式+数据库方式,AbpDefaultTenantStoreOptions
|
2025-06-21 01:08:14 +08:00
|
|
|
|
// "Tenants": [
|
|
|
|
|
|
// {
|
|
|
|
|
|
// "Id": "33333333-3d72-4339-9adc-845151f8ada0",
|
|
|
|
|
|
// "Name": "Mes@MySql",
|
|
|
|
|
|
// "ConnectionStrings": {
|
|
|
|
|
|
// "Default": "DataSource=mes-dev.db"
|
|
|
|
|
|
// },
|
|
|
|
|
|
// "IsActive": false
|
|
|
|
|
|
// }
|
|
|
|
|
|
// ],
|
|
|
|
|
|
|
2023-12-11 09:55:12 +08:00
|
|
|
|
"Logging": {
|
|
|
|
|
|
"LogLevel": {
|
|
|
|
|
|
//"Default": "Information",
|
|
|
|
|
|
"Default": "Debug",
|
|
|
|
|
|
"Microsoft.AspNetCore": "Warning"
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
//应用启动
|
|
|
|
|
|
"App": {
|
|
|
|
|
|
"SelfUrl": "http://*:19001",
|
2025-08-14 15:14:30 +08:00
|
|
|
|
"CorsOrigins": "http://localhost:19001;http://localhost:18000;vscode-file://vscode-app;https://web.chatboxai.app;capacitor://localhost;http://codegeex;https://yxai.chat"
|
2023-12-11 09:55:12 +08:00
|
|
|
|
},
|
2024-06-27 22:39:09 +08:00
|
|
|
|
//配置
|
|
|
|
|
|
"Settings": {
|
2025-07-13 21:26:46 +08:00
|
|
|
|
"Test": "hello",
|
|
|
|
|
|
//邮箱
|
|
|
|
|
|
"Abp.Mailing.Smtp.Host": "127.0.0.1",
|
|
|
|
|
|
"Abp.Mailing.Smtp.Port": "25",
|
|
|
|
|
|
"Abp.Mailing.Smtp.UserName": "",
|
|
|
|
|
|
"Abp.Mailing.Smtp.Password": "",
|
|
|
|
|
|
"Abp.Mailing.Smtp.Domain": "",
|
|
|
|
|
|
"Abp.Mailing.Smtp.EnableSsl": "false",
|
|
|
|
|
|
"Abp.Mailing.Smtp.UseDefaultCredentials": "true",
|
|
|
|
|
|
"Abp.Mailing.DefaultFromAddress": "noreply@abp.io",
|
|
|
|
|
|
"Abp.Mailing.DefaultFromDisplayName": "ABP application"
|
2024-06-27 22:39:09 +08:00
|
|
|
|
},
|
2023-12-11 09:55:12 +08:00
|
|
|
|
//数据库类型列表
|
2025-06-21 01:08:14 +08:00
|
|
|
|
"DbList": [
|
|
|
|
|
|
"Sqlite",
|
|
|
|
|
|
"Mysql",
|
|
|
|
|
|
"Sqlserver",
|
|
|
|
|
|
"Oracle",
|
|
|
|
|
|
"PostgreSQL"
|
|
|
|
|
|
],
|
|
|
|
|
|
"DbConnOptions": {
|
|
|
|
|
|
"Url": "DataSource=yi-abp-dev.db",
|
|
|
|
|
|
"DbType": "Sqlite",
|
|
|
|
|
|
"EnabledReadWrite": false,
|
|
|
|
|
|
"EnabledCodeFirst": true,
|
|
|
|
|
|
"EnabledSqlLog": true,
|
|
|
|
|
|
"EnabledDbSeed": true,
|
|
|
|
|
|
"EnableUnderLine": false,
|
|
|
|
|
|
// 启用驼峰转下划线
|
|
|
|
|
|
//SAAS多租户
|
|
|
|
|
|
"EnabledSaasMultiTenancy": true
|
|
|
|
|
|
//读写分离地址
|
|
|
|
|
|
//"ReadUrl": [
|
|
|
|
|
|
// "DataSource=[xxxx]", //Sqlite
|
|
|
|
|
|
// "server=[xxxx];port=3306;database=[xxxx];user id=[xxxx];password=[xxxx]", //Mysql
|
|
|
|
|
|
// "Data Source=[xxxx];Initial Catalog=[xxxx];User ID=[xxxx];password=[xxxx]" //Sqlserver
|
|
|
|
|
|
// "HOST=[xxxx];PORT=5432;DATABASE=[xxxx];USERID=[xxxx];PASSWORD=[xxxx]" //PostgreSQL
|
|
|
|
|
|
//]
|
|
|
|
|
|
},
|
2024-02-17 16:59:57 +08:00
|
|
|
|
//redis使用freeesql参数在“FreeSqlOptions的ConnectionStringBuilder中”
|
|
|
|
|
|
"Redis": {
|
|
|
|
|
|
"IsEnabled": false,
|
2025-03-10 22:27:54 +08:00
|
|
|
|
"Configuration": "127.0.0.1:6379,password=123,defaultDatabase=13",
|
|
|
|
|
|
"JobDb": 13
|
2024-02-17 16:59:57 +08:00
|
|
|
|
},
|
2023-12-11 09:55:12 +08:00
|
|
|
|
//鉴权
|
|
|
|
|
|
"JwtOptions": {
|
|
|
|
|
|
"Issuer": "https://ccnetcore.com",
|
|
|
|
|
|
"Audience": "https://ccnetcore.com",
|
2025-03-08 23:22:01 +08:00
|
|
|
|
"SecurityKey": "qqxwcevrbtnymu312412ihe9rfwhe78rh23djoi32hrui3ryf9e8wfh34iuj54y0934uti4h97fgw7hf97wyh8yy69522",
|
2025-07-01 16:41:58 +08:00
|
|
|
|
"ExpiresSecondTime": 86400
|
2023-12-16 14:10:11 +08:00
|
|
|
|
},
|
2024-01-23 23:35:38 +08:00
|
|
|
|
//刷新token
|
|
|
|
|
|
"RefreshJwtOptions": {
|
|
|
|
|
|
"Issuer": "https://yi.ccnetcore.com",
|
|
|
|
|
|
"Audience": "https://yi.ccnetcore.com",
|
2025-07-01 16:41:58 +08:00
|
|
|
|
"SecurityKey": "aaaij4o6jo4i5j6io45j6i4j74p5k6i54ojoi5t9g8ergoj34ofgkrtbmreog894jbioemgropihj48rj4io5juopjgior",
|
|
|
|
|
|
"ExpiresSecondTime": 172800
|
2024-01-23 23:35:38 +08:00
|
|
|
|
},
|
2024-01-07 13:34:50 +08:00
|
|
|
|
//第三方登录
|
|
|
|
|
|
"OAuth": {
|
|
|
|
|
|
//QQ
|
|
|
|
|
|
"QQ": {
|
|
|
|
|
|
"ClientId": "",
|
|
|
|
|
|
"ClientSecret": "",
|
|
|
|
|
|
"RedirectUri": ""
|
|
|
|
|
|
},
|
|
|
|
|
|
//码云
|
|
|
|
|
|
"Gitee": {
|
|
|
|
|
|
"ClientId": "",
|
|
|
|
|
|
"ClientSecret": "",
|
|
|
|
|
|
"RedirectUri": ""
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2023-12-16 14:10:11 +08:00
|
|
|
|
//Rbac模块
|
|
|
|
|
|
"RbacOptions": {
|
|
|
|
|
|
//超级管理员种子数据默认密码
|
2023-12-20 21:43:16 +08:00
|
|
|
|
"AdminPassword": "123456",
|
|
|
|
|
|
//是否开启验证码验证
|
|
|
|
|
|
"EnableCaptcha": true,
|
2025-07-13 21:26:46 +08:00
|
|
|
|
//验证类型:email/Phone
|
|
|
|
|
|
"CaptchaType": "Email",
|
2023-12-20 21:43:16 +08:00
|
|
|
|
//是否开启注册功能
|
2023-12-22 18:57:04 +08:00
|
|
|
|
"EnableRegister": false,
|
|
|
|
|
|
//开启定时数据库备份
|
|
|
|
|
|
"EnableDataBaseBackup": false
|
2024-07-19 18:17:36 +08:00
|
|
|
|
},
|
2025-03-08 22:14:26 +08:00
|
|
|
|
//语义内核
|
|
|
|
|
|
"SemanticKernel": {
|
2025-06-21 01:08:14 +08:00
|
|
|
|
"ModelIds": [
|
|
|
|
|
|
"gpt-4o"
|
|
|
|
|
|
],
|
2025-03-08 22:14:26 +08:00
|
|
|
|
"Endpoint": "https://xxx.com/v1",
|
|
|
|
|
|
"ApiKey": "sk-xxxxxx"
|
2023-12-11 09:55:12 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|