zhuangpei-mesbackend/DOAN.Admin.WebApi/appsettings.Development.json

198 lines
8.0 KiB
JSON
Raw Normal View History

2024-05-16 13:40:51 +08:00
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"dbConfigs": [
{
2025-11-03 16:57:55 +08:00
"Conn": "Data Source=139.224.232.211;User ID=root;Password=doantech123;Initial Catalog=GXAssembly;Port=3308",
//"Conn": "Data Source=118.25.48.201;User ID=root;Password=123456;Initial Catalog=gxassembly;Port=3306;AllowLoadLocalInfile=true",
2025-10-28 09:08:22 +08:00
// "Conn": "Data Source=192.168.1.48;User ID=root;Password=123456;Initial Catalog=GXAssembly;Port=3306;AllowLoadLocalInfile=true",
// "Conn": "Data Source=127.0.0.1;User ID=root;Password=123456;Initial Catalog=GXAssembly;Port=3306",
2024-09-13 15:21:19 +08:00
//"Conn": "Data Source=192.168.50.163;User ID=root;Password=123456;Initial Catalog=GXAssembly;Port=3306",
2024-05-16 13:40:51 +08:00
"DbType": 0, //数据库类型 MySql = 0, SqlServer = 1, Oracle = 3PgSql = 4
"ConfigId": "0", //多租户唯一标识
"IsAutoCloseConnection": true
2024-08-01 10:55:51 +08:00
},
{
//"Conn": "Data Source=139.224.232.211;User ID=root;Password=doantech123;Initial Catalog=GXAssembly;Port=3308",
// "Conn": "Data Source=127.0.0.1;User ID=root;Password=123456;Initial Catalog=GXAssembly;Port=3306",
"Conn": "Data Source=192.168.1.48;User ID=u8-mes;Password=0.1230.123;Initial Catalog=UFDATA_230_2024",
2024-08-28 15:40:40 +08:00
"DbType": 1, //数据库类型 MySql = 0, SqlServer = 1, Oracle = 3PgSql = 4
2024-08-01 10:55:51 +08:00
"ConfigId": "1", //多租户唯一标识
"IsAutoCloseConnection": true
2025-06-04 08:41:23 +08:00
},
{
"Conn": "Data Source=139.224.232.211;User ID=root;Password=doantech123;Initial Catalog=shgx_dw_ods_production_data_trace;Port=3308",
//"Conn": "Data Source=127.0.0.1;User ID=root;Password=123456;Initial Catalog=GXAssembly;Port=3306",
//"Conn": "Data Source=192.168.0.58;User ID=u8-mes;Password=0.1230.123;Initial Catalog=UFDATA_230_2024",
"DbType": 0, //数据库类型 MySql = 0, SqlServer = 1, Oracle = 3PgSql = 4
2025-06-04 08:41:23 +08:00
"ConfigId": "2", //多租户唯一标识
"IsAutoCloseConnection": true
},
{
2025-09-17 09:58:40 +08:00
//"Conn": "Data Source=139.224.232.211;User ID=root;Password=doantech123;Initial Catalog=shgx_dw_dwd_production_data_trace;Port=3308",
2025-06-04 08:41:23 +08:00
//"Conn": "Data Source=127.0.0.1;User ID=root;Password=123456;Initial Catalog=GXAssembly;Port=3306",
2025-09-17 09:58:40 +08:00
//"Conn": "Data Source=192.168.1.48;User ID=u8-mes;Password=0.1230.123;Initial Catalog=UFDATA_230_2024",
"DbType": 0, //数据库类型 MySql = 0, SqlServer = 1, Oracle = 3PgSql = 4
2025-06-04 08:41:23 +08:00
"ConfigId": "3", //多租户唯一标识
"IsAutoCloseConnection": true
2025-08-17 15:17:25 +08:00
},
// pgsql
{
"Conn": "Host=192.168.1.48;Port=5432;Database=datalake;Username=postgres;Password=123456;",
"DbType": 4, //数据库类型 MySql = 0, SqlServer = 1, Oracle = 3PgSql = 4
"ConfigId": "4", //多租户唯一标识
"IsAutoCloseConnection": true
2024-05-16 13:40:51 +08:00
}
//...下面添加更多的数据库源
],
//代码生成数据库配置
"CodeGenDbConfig": {
//代码生成连接字符串,注意{dbName}为固定格式,不要填写数据库名
2025-09-02 16:16:13 +08:00
//"Conn": "Host=192.168.1.48;Port=5432;Database={dbName};Username=postgres;Password=123456;",
"Conn": "Data Source=139.224.232.211;User ID=root;Password=doantech123;Initial Catalog={dbName};Port=3308",
"DbType": 0,
2024-05-16 13:40:51 +08:00
"IsAutoCloseConnection": true,
2025-09-02 16:16:13 +08:00
"DbName": "GXAssembly" //代码生成默认连接数据库,Oracle库是实例的名称
2024-05-16 13:40:51 +08:00
},
2024-06-07 09:50:07 +08:00
"urls": "http://*.*.*.*:7000", //项目启动url如果改动端口前端对应devServer也需要进行修改
2024-06-11 13:35:43 +08:00
"corsUrls": [ "http://localhost:7001", "http://localhost:7002", "http://*.*.*.*:7001", "http://0.0.0.0:7001", "http://127.0.0.1:7001" ], //跨域地址(前端启动项目,前后端分离单独部署需要设置),多个用","隔开
2024-05-16 13:40:51 +08:00
"JwtSettings": {
"Issuer": "DOAN.NET", //即token的签发者。
"Audience": "DOAN.NET", //指该token是服务于哪个群体的群体范围
2024-05-31 13:40:00 +08:00
"SecretKey": "SecretKey-DOAN.NET-2024-DOAN.NETDOAN.NETDOAN.NETDOAN.NETDOAN.NET",
2024-05-16 13:40:51 +08:00
"Expire": 1440, //jwt登录过期时间
"RefreshTokenTime": 5, //分钟
"TokenType": "Bearer"
},
2025-11-16 15:16:51 +08:00
"InjectClass": [ "DOAN.Repository", "DOAN.Service", "DOAN.Tasks", "DOAN.ServiceCore","MDM" ], //自动注入类
"ShowDbLog": true, //是否打印db日志
2024-05-20 18:04:42 +08:00
"InitDb": false, //是否初始化db
2024-05-16 13:40:51 +08:00
"DemoMode": false, //是否演示模式
"SingleLogin": false, //是否单点登录
"Upload": {
2024-12-23 13:49:34 +08:00
"rootDirectory": "D:/MES_test/file",
2024-06-07 09:50:07 +08:00
"uploadUrl": "http://127.0.0.1:7000", //本地存储资源访问路径
2024-06-18 10:53:54 +08:00
"localSavePath": "", //本地上传默认文件存储目录 wwwroot+localSavePath
2024-05-16 13:40:51 +08:00
"maxSize": 15, //上传文件大小限制 15M
"notAllowedExt": [ ".bat", ".exe", ".jar", ".js" ]
},
//阿里云存储配置
"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": ""
},
//代码生成配置
"gen": {
//是否显示移动端代码生成
"showApp": false,
//自动去除表前缀
"autoPre": true,
"author": "admin",
"tablePrefix": "sys_", //"表前缀(生成类名不会包含表前缀,多个用逗号分隔)",
2024-07-01 16:04:10 +08:00
"vuePath": "", //前端代码存储路径egD:\Work\DOANAdmin-Vue3
2024-05-16 13:40:51 +08:00
"csharpTypeArr": {
"string": [ "varchar", "nvarchar", "text", "longtext" ],
"int": [ "int", "integer", "smallint", "int4", "int8", "int2" ],
"long": [ "bigint", "number" ],
"float": [ "numeric", "real", "float" ],
"decimal": [ "money", "decimal", "smallmoney" ],
"dateTime": [ "date", "datetime", "datetime2", "smalldatetime", "timestamp" ],
"byte": [ "tinyint" ],
"bool": [ "bit" ]
}
},
2025-08-17 15:17:25 +08:00
// 邮箱配置信息
2024-05-16 13:40:51 +08:00
"MailOptions": {
//发件人名称
2024-06-25 14:38:39 +08:00
"FromName": "3143976203<xu3143976203@foxmail.com>",
2024-05-16 13:40:51 +08:00
//发送人邮箱
2024-06-25 14:38:39 +08:00
"FromEmail": "3143976203@qq.com", //egxxxx@qq.com
2024-05-16 13:40:51 +08:00
//发送人邮箱密码
2024-06-25 14:38:39 +08:00
"Password": "wwxcrgvbotxxdcfg",
2024-05-16 13:40:51 +08:00
//协议
2024-06-25 14:38:39 +08:00
"Smtp": "smtp.qq.com",
"Port": 465,
"Signature": "系统邮件,请勿回复! ",
2024-05-16 13:40:51 +08:00
"UseSsl": true
},
2024-06-25 14:38:39 +08:00
2024-05-16 13:40:51 +08:00
//redis服务配置
"RedisServer": {
"open": 0, //是否启用redis
"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:"
},
//接口请求限制
"IpRateLimiting": {
"EnableEndpointRateLimiting": true,
"StackBlockedRequests": false,
"RealIpHeader": "X-Real-IP",
"ClientIdHeader": "X-ClientId",
"HttpStatusCode": 429,
"EndpointWhitelist": [ "post:/system/dict/data/types", "*:/msghub/negotiate", "*:/LogOut", "*:/common/uploadfile", "*:/VerifyScan" ],
"QuotaExceededResponse": {
"Content": "{{\"code\":429,\"msg\":\"访问过于频繁,请稍后重试\"}}",
"ContentType": "application/json",
"StatusCode": 429
},
//通用规则api规则,结尾一定要带*
"GeneralRules": [
{
"Endpoint": "*:/captchaImage",
//时间段,格式:{数字}{单位}可使用单位s, m, h, d
"Period": "3s",
"Limit": 5
},
{
"Endpoint": "((post)|(put)):*",
"Period": "3s",
"Limit": 1
}
]
},
//验证码配置
"CaptchaOptions": {
"IgnoreCase": true // 比较时是否忽略大小写
},
//钉钉应用
"dingding": {
"AppKey": "dingadx9vkznmxpz3zkc",
2024-07-01 16:04:10 +08:00
"AppSecret": "2fAF0Ntlkoc-sl8c4gLr-H4XtbhvCSVKrfOGZMuDOAN2ovwFpw8sqMQaUmSok2CacM",
2024-05-16 13:40:51 +08:00
"SystemToken": "J8C66JD12ZZE0XEW9ZVAHDQYT0JG2W6W56LNL9"
},
//宜搭表单
"yida": {
"AppType": "APP_GDR2EK0JCTKSNBEXJWL4",
"SystemToken": "TG766XB1U51FCFCB7HGXB40VMHVV2YQ1OLSNLJ9",
"UserId": "512960355835054196",
"FormUuid": "FORM-0A966I81K40F81PX70O15A02E2V72FQGPLSNLQ"
}
}