This commit is contained in:
qianhao.xu 2024-09-23 09:22:21 +08:00
parent fdbe20be5a
commit 926c4be7ec
3 changed files with 230 additions and 2 deletions

4
.gitignore vendored
View File

@ -259,9 +259,9 @@ paket-files/
# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc
/DOAN.Admin.WebApi/appsettings.Development.json
#/DOAN.Admin.WebApi/appsettings.Development.json
/CodeGenerate
/DOAN.Admin.WebApi/appsettings.Production.json
#/DOAN.Admin.WebApi/appsettings.Production.json
/DOAN.Admin.WebApi/wwwroot/uploads
/DOAN.Admin.WebApi/wwwroot/Generatecode
/DOAN.Admin.WebApi/wwwroot/export

View File

@ -0,0 +1,115 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"dbConfigs": [
{
"Conn": "Data Source=192.168.0.58;User ID=root;Password=123456;Initial Catalog=pbl_huaixiang;",
"DbType": 0, // MySql = 0, SqlServer = 1, Oracle = 3PgSql = 4
"ConfigId": "0", //
"IsAutoCloseConnection": true
}
//...
],
//
"CodeGenDbConfig": {
//{dbName}
"Conn": "Data Source=192.168.0.58;User ID=root;Password=123456;Initial Catalog={dbName};",
"DbType": 0,
"IsAutoCloseConnection": true,
"DbName": "pbl_huaixiang" //,Oracle
},
"urls": "http://localhost:8888", //urldevServer
"corsUrls": [ "http://localhost:8887", "http://localhost:8886" ], //","
"JwtSettings": {
"Issuer": "DOANAdmin.NET", //token
"Audience": "DOANAdmin.NET", //token
"SecretKey": "SecretKey-DOANADMIN.NET-202311281883838",
"Expire": 1440, //jwt
"RefreshTokenTime": 30, //
"TokenType": "Bearer"
},
"InjectClass": [ "DOAN.Repository", "DOAN.Service", "DOAN.Tasks", "DOAN.ServiceCore" ], //
"ShowDbLog": true, //db
"InitDb": true, //db
"DemoMode": false, //
"SingleLogin": false, ///
"workId": 1, //id
"sqlExecutionTime": 5, //Sql
"Upload": {
"uploadUrl": "http://localhost:8888", //访
"localSavePath": "", // wwwroot
"maxSize": 15, // 15M
"notAllowedExt": [ ".bat", ".exe", ".jar", ".js" ],
"requestLimitSize": 50 //body
},
//
"ALIYUN_OSS": {
"REGIONID": "", //egcn-hangzhou
"KEY": "XX",
"SECRET": "XX",
"bucketName": "bucketName",
"domainUrl": "http://xxx.xxx.com", //访
"maxSize": 100 // 100M
},
//
"WxCorp": {
"AgentID": "",
"CorpID": "",
"CorpSecret": "",
"SendUser": "@all"
},
//
"WxOpen": {
"AppID": "",
"AppSecret": ""
},
//
"MailOptions": [
{
//()
"FromName": "system",
//
"FromEmail": "", //egxxxx@qq.com
//
"Password": "",
//
"Smtp": "smtp.qq.com",
"Port": 587,
"Signature": "系统邮件,请勿回复!",
"UseSsl": true
}
],
//redis
"RedisServer": {
"open": 0, //redis
"dbCache": false, //使Redisopen1
"Cache": "127.0.0.1:6379,defaultDatabase=0,poolsize=50,ssl=false,writeBuffer=10240,prefix=cache:",
"Session": "127.0.0.1:6379,defaultDatabase=0,poolsize=50,ssl=false,writeBuffer=10240,prefix=session:"
},
//
"CaptchaOptions": {
"IgnoreCase": true //
},
//
"CodeGen": {
//uniapp 2/3(vue)
"uniappVersion": 3,
//
"showApp": true,
//
"autoPre": true,
//
"moduleName": "business",
"author": "admin",
"tablePrefix": "sys_", //"表前缀(生成类名不会包含表前缀,多个用逗号分隔)",
"vuePath": "", //egD:\Work\DOANAdmin-Vue3
"uniappPath": "D:\\Work" //h5
}
}

View File

@ -0,0 +1,113 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"dbConfigs": [
{
"Conn": "Data Source=LAPTOP-STKF2M8H\\SQLEXPRESS;User ID=admin;Password=123456;Initial Catalog=DOANAdmin;",
"DbType": 1, // MySql = 0, SqlServer = 1, Oracle = 3PgSql = 4
"ConfigId": "0", //
"IsAutoCloseConnection": true
}
//...
],
//
"CodeGenDbConfig": {
//{dbName}
"Conn": "Data Source=LAPTOP-STKF2M8H\\SQLEXPRESS;User ID=admin;Password=admin123;Initial Catalog={dbName};",
"DbType": 1,
"IsAutoCloseConnection": true,
"DbName": "DOANAdmin" //,Oracle
},
"urls": "http://localhost:8888", //urldevServer
"corsUrls": [ "http://localhost:8887", "http://localhost:8886" ], //","
"JwtSettings": {
"Issuer": "DOANAdmin.NET", //token
"Audience": "DOANAdmin.NET", //token
"SecretKey": "SecretKey-DOANADMIN.NET-202311281883838",
"Expire": 1440, //jwt
"RefreshTokenTime": 30, //
"TokenType": "Bearer"
},
"InjectClass": [ "DOAN.Repository", "DOAN.Service", "DOAN.Tasks", "DOAN.ServiceCore" ], //
"ShowDbLog": true, //db
"InitDb": false, //db
"DemoMode": false, //
"SingleLogin": false, ///
"workId": 1, //id
"sqlExecutionTime": 5, //Sql
"Upload": {
"uploadUrl": "http://localhost:8888", //访
"localSavePath": "", // wwwroot
"maxSize": 15, // 15M
"notAllowedExt": [ ".bat", ".exe", ".jar", ".js" ],
"requestLimitSize": 50 //body
},
//
"ALIYUN_OSS": {
"REGIONID": "", //egcn-hangzhou
"KEY": "XX",
"SECRET": "XX",
"bucketName": "bucketName",
"domainUrl": "http://xxx.xxx.com", //访
"maxSize": 100 // 100M
},
//
"WxCorp": {
"AgentID": "",
"CorpID": "",
"CorpSecret": "",
"SendUser": "@all"
},
//
"WxOpen": {
"AppID": "",
"AppSecret": ""
},
//
"MailOptions": [
{
//()
"FromName": "system",
//
"FromEmail": "", //egxxxx@qq.com
//
"Password": "",
//
"Smtp": "smtp.qq.com",
"Port": 587,
"Signature": "系统邮件,请勿回复!",
"UseSsl": true
}
],
//redis
"RedisServer": {
"open": 0, //redis
"dbCache": false, //使Redisopen1
"Cache": "127.0.0.1:6379,defaultDatabase=0,poolsize=50,ssl=false,writeBuffer=10240,prefix=cache:",
"Session": "127.0.0.1:6379,defaultDatabase=0,poolsize=50,ssl=false,writeBuffer=10240,prefix=session:"
},
//
"CaptchaOptions": {
"IgnoreCase": true //
},
//
"CodeGen": {
//uniapp 2/3(vue)
"uniappVersion": 3,
//
"showApp": true,
//
"autoPre": true,
//
"moduleName": "business",
"author": "admin",
"tablePrefix": "sys_", //"表前缀(生成类名不会包含表前缀,多个用逗号分隔)",
"vuePath": "", //egD:\Work\DOANAdmin-Vue3
"uniappPath": "D:\\Work" //h5
}
}