添加项目文件。
This commit is contained in:
83
apihost/Tnb.API.Entry/Configurations/App.json
Normal file
83
apihost/Tnb.API.Entry/Configurations/App.json
Normal file
@@ -0,0 +1,83 @@
|
||||
{
|
||||
"JNPF_App": {
|
||||
"CodeAreasName": [ "SubDev" ],
|
||||
//系统文件路径
|
||||
"SystemPath": "D:\\ToTong\\tnb\\Resources",
|
||||
//微信公众号允许上传文件类型
|
||||
"MPUploadFileType": [ "bmp", "png", "jpeg", "jpg", "gif", "mp3", "wma", "wav", "amr", "mp4" ],
|
||||
//微信允许上传文件类型
|
||||
"WeChatUploadFileType": [ "jpg", "png", "doc", "docx", "ppt", "pptx", "xls", "xlsx", "pdf", "txt", "rar", "zip", "csv", "amr", "mp4" ],
|
||||
//允许图片类型
|
||||
"AllowUploadImageType": [ "jpg", "gif", "png", "bmp", "jpeg", "tiff", "psd", "swf", "svg", "pcx", "dxf", "wmf", "emf", "lic", "eps", "tga" ],
|
||||
//允许上传文件类型
|
||||
"AllowUploadFileType": [ "jpg", "mp3", "gif", "png", "bmp", "jpeg", "doc", "docx", "ppt", "pptx", "xls", "xlsx", "pdf", "txt", "rar", "zip", "csv" ],
|
||||
//过滤上传文件名称特殊字符
|
||||
"SpecialString": [ "/", "<", ">", "|", "?", "\\", ":", "\"", "*", "_" ],
|
||||
"PreviewType": "kkfile", //文件预览方式 (kkfile,yozo)默认使用kkfile
|
||||
"KKFileDomain": "http://127.0.0.1:30090/FileServer",
|
||||
"Domain": "http://yinmai.tpddns.cn:7772",
|
||||
"YOZO": {
|
||||
"domain": "http://dcsapi.com/",
|
||||
"domainKey": "57462250284462899305150",
|
||||
"UploadAPI": "http://dmc.yozocloud.cn/api/file/http?fileUrl={0}&appId={1}&sign={2}", //上传接口
|
||||
"DownloadAPI": "http://eic.yozocloud.cn/api/view/file?fileVersionId={0}&appId={1}&sign={2}", //预览接口
|
||||
"AppId": "yozoAQh5dPSt6063", //应用Id
|
||||
"AppKey": "6365bfbd733fce644fd7ac0aaeca" //签名
|
||||
},
|
||||
//================== 系统错误邮件报告反馈相关 ============================== -->
|
||||
//软件的错误报告
|
||||
"ErrorReport": false,
|
||||
//软件的错误报告发给谁
|
||||
"ErrorReportTo": "tuotong_tech@163.com"
|
||||
},
|
||||
//================== 第三方登录配置 ============================== -->
|
||||
"Socials": {
|
||||
"SocialsEnabled": true,
|
||||
"DoMain": "https://562f45p309.goho.co/dev", // 外网能访问的地址(域名), 回调的时候拼接接口地址用
|
||||
"Config": [
|
||||
{
|
||||
"Provider": "wechat_open", // 微信
|
||||
"ClientId": "wxef1eded63394caab",
|
||||
"ClientSecret": "cbe39c090c5606ee4c83c69961bb7132"
|
||||
},
|
||||
//{
|
||||
// "Provider": "qq", // qq
|
||||
// "ClientId": "1112149755",
|
||||
// "ClientSecret": "hyejIUnW3LYSnFv5"
|
||||
//},
|
||||
{
|
||||
"Provider": "wechat_enterprise", // 企业微信
|
||||
"ClientId": "wwf75525d6abbf7f31",
|
||||
"ClientSecret": "3lUofKsOOCOOO8Lr9uZ2qqKpRxozn33ya0estNFmCX0",
|
||||
"AgentId": "1000003"
|
||||
},
|
||||
{
|
||||
"Provider": "dingtalk", // 钉钉
|
||||
"ClientId": "dingmdsrfe5acay7dqvx",
|
||||
"ClientSecret": "zUEQfNbVzHajZgRELsptGxukPBK-pkJOe94HTVQNLnplF4ZEcguspkHRmJLtHBB9",
|
||||
"AgentId": "785270551"
|
||||
},
|
||||
{
|
||||
"Provider": "feishu", // 飞书
|
||||
"ClientId": "cli_a205984c98b9500d",
|
||||
"ClientSecret": "GtzwzI7gcbAhLjFPJ6YqYfhNESJ3imFk"
|
||||
}
|
||||
//{
|
||||
// "Provider": "github", // GitHub
|
||||
// "ClientId": "cli_a205984c98b9500d",
|
||||
// "ClientSecret": "GtzwzI7gcbAhLjFPJ6YqYfhNESJ3imFk"
|
||||
//},
|
||||
//{
|
||||
// "Provider": "wechat_applets", // 小程序
|
||||
// "ClientId": "wx8f5cb90d8ff960a3",
|
||||
// "ClientSecret": "a78af789549c9f203cd6bfd593640968"
|
||||
//}
|
||||
]
|
||||
},
|
||||
//================== 消息跳转配置 ============================== -->
|
||||
"Message": {
|
||||
"DoMainPc": "http://127.0.0.1:3000", // 前端PC外网能访问的地址(域名), 回调的时候拼接接口地址用
|
||||
"DoMainApp": "http://127.0.0.1:3000", // 前端App外网能访问的地址(域名), 回调的时候拼接接口地址用
|
||||
"AppPushUrl": "https://8e84eea8-6922-4033-8e86-67ad7442e692.bspapp.com/unipush"
|
||||
}
|
||||
}
|
||||
13
apihost/Tnb.API.Entry/Configurations/AppSetting.json
Normal file
13
apihost/Tnb.API.Entry/Configurations/AppSetting.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"AppSettings": {
|
||||
"InjectMiniProfiler": true,
|
||||
"SupportPackageNamePrefixs": ["Tnb"]
|
||||
},
|
||||
"Kestrel": {
|
||||
"Endpoints": {
|
||||
"Http": {
|
||||
"Url": "http://localhost:9231"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
9
apihost/Tnb.API.Entry/Configurations/Cache.json
Normal file
9
apihost/Tnb.API.Entry/Configurations/Cache.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"Cache": {
|
||||
"CacheType": "RedisCache", //MemoryCache
|
||||
"ip": "localhost",
|
||||
"port": 9204,
|
||||
"password": "05jWEoJa8v",
|
||||
"RedisConnectionString": "{0}:{1},password={2}, poolsize=500,ssl=false,defaultDatabase=6"
|
||||
}
|
||||
}
|
||||
24
apihost/Tnb.API.Entry/Configurations/ConnectionStrings.json
Normal file
24
apihost/Tnb.API.Entry/Configurations/ConnectionStrings.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"ConnectionStrings": {
|
||||
"ConfigId": "default",
|
||||
"DBName": "tnb",
|
||||
"DBType": "PostgreSQL", //MySql;SqlServer;Oracle;PostgreSQL;Dm;Kdbndp;Sqlite;
|
||||
"Host": "localhost",
|
||||
"Port": "9202",
|
||||
"UserName": "totong",
|
||||
"Password": "IPANyxGSKxIXg0dBM",
|
||||
//SqlServer
|
||||
//"DefaultConnection": "Data Source=192.168.0.214;Initial Catalog={0};User ID=sa;Password=kMaeMP8Yck6b6wA;MultipleActiveResultSets=true"
|
||||
//Kdbndp
|
||||
//"DefaultConnection": "Server=192.168.0.103;Port=54321;UID=YANYU;PWD=123456;database=YANSOURCE"
|
||||
//Dm
|
||||
//"DefaultConnection": "Server=192.168.0.50; User Id=JNPFTEST; PWD=I97eH!bRfy55qGzF;DATABASE=JNPFTEST"
|
||||
//Oracle
|
||||
//"DefaultConnection": "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.19)(PORT=1521))(CONNECT_DATA=(SERVER = DEDICATED)(SERVICE_NAME=JNPFCLOUD)));User Id=JNPFCLOUD;Password=JNPFCLOUD"
|
||||
//PostgreSQL
|
||||
//"DefaultConnection": "PORT=5432;DATABASE=java_boot_dev_postgresql;HOST=192.168.0.103;PASSWORD=123456;USER ID=postgres"
|
||||
"DefaultConnection": "server=localhost;port=9202;database=tnb;uid=totong;pwd=IPANyxGSKxIXg0dBM;pooling=true;"
|
||||
//MySql
|
||||
//"DefaultConnection": "server=192.168.0.10;Database=netcore_test;Uid=netcore_test;Pwd=jhpGB3A88CF57fBC;AllowLoadLocalInfile=true"
|
||||
}
|
||||
}
|
||||
7
apihost/Tnb.API.Entry/Configurations/Cors.json
Normal file
7
apihost/Tnb.API.Entry/Configurations/Cors.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"CorsAccessorSettings": {
|
||||
"PolicyName": "JNPFCorsAccessor",
|
||||
"WithOrigins": [ "http://localhost:3000", "http://localhost:8080" ],
|
||||
"WithExposedHeaders": [ "access-token", "x-access-token", "Content-Disposition" ]
|
||||
}
|
||||
}
|
||||
13
apihost/Tnb.API.Entry/Configurations/JWT.json
Normal file
13
apihost/Tnb.API.Entry/Configurations/JWT.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"JWTSettings": {
|
||||
"ValidateIssuerSigningKey": true, // 是否验证密钥,bool 类型,默认true
|
||||
"IssuerSigningKey": "7k5yOxSMHVdYjs61gkgUY3W9DHbgk7tokaZlP3QIlfk34D1H7jYEOcLybClW1aKl", // 密钥,string 类型,必须是复杂密钥,长度大于16
|
||||
"ValidateIssuer": true, // 是否验证签发方,bool 类型,默认true
|
||||
"ValidIssuer": "tuotong", // 签发方,string 类型
|
||||
"ValidateAudience": true, // 是否验证签收方,bool 类型,默认true
|
||||
"ValidAudience": "tuotong", // 签收方,string 类型
|
||||
"ValidateLifetime": true, // 是否验证过期时间,bool 类型,默认true,建议true
|
||||
"ExpiredTime": 1440, // 过期时间,long 类型,单位分钟,默认20分钟
|
||||
"ClockSkew": 5 // 过期时间容错值,long 类型,单位秒,默认5秒
|
||||
}
|
||||
}
|
||||
16
apihost/Tnb.API.Entry/Configurations/Logging.json
Normal file
16
apihost/Tnb.API.Entry/Configurations/Logging.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
},
|
||||
"File": {
|
||||
"Enabled": true, // 启用文件日志
|
||||
"FileName": "logs/{0:yyyyMMdd}.log", // 日志文件
|
||||
"Append": true, // 追加覆盖
|
||||
// "MinimumLevel": "Information", // 日志级别
|
||||
"FileSizeLimitBytes": 10485760, // 10M=10*1024*1024
|
||||
"MaxRollingFiles": 30 // 只保留30个文件
|
||||
}
|
||||
}
|
||||
}
|
||||
13
apihost/Tnb.API.Entry/Configurations/OSS.json
Normal file
13
apihost/Tnb.API.Entry/Configurations/OSS.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"OSS": {
|
||||
"BucketName": "jnpfsoftoss",
|
||||
//文件存储类型(Invalid(本地),MinIo,Aliyun,QCloud,Qiniu)
|
||||
"Provider": "Invalid",
|
||||
"Endpoint": "192.168.0.60:9000",
|
||||
"AccessKey": "minioadmin",
|
||||
"SecretKey": "minioadmin",
|
||||
"Region": null,
|
||||
"IsEnableHttps": false,
|
||||
"IsEnableCache": true
|
||||
}
|
||||
}
|
||||
19
apihost/Tnb.API.Entry/Configurations/Swagger.json
Normal file
19
apihost/Tnb.API.Entry/Configurations/Swagger.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"SpecificationDocumentSettings": {
|
||||
"DocumentTitle": "JNPF.NET",
|
||||
"DocExpansionState": "None",
|
||||
"GroupOpenApiInfos": [
|
||||
{
|
||||
"Group": "Default",
|
||||
"Title": "JNPF快捷开发平台",
|
||||
"Description": "",
|
||||
"Version": "3.4.5"
|
||||
}
|
||||
],
|
||||
"LoginInfo": {
|
||||
"Enabled": false,
|
||||
// "CheckUrl": "https://localhost:5000/Home/CheckUrl",
|
||||
// "SubmitUrl": "https://localhost:5000/Home/SubmitUrl"
|
||||
}
|
||||
}
|
||||
}
|
||||
6
apihost/Tnb.API.Entry/Configurations/Tenant.json
Normal file
6
apihost/Tnb.API.Entry/Configurations/Tenant.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"Tenant": {
|
||||
"MultiTenancy": false,
|
||||
"MultiTenancyDBInterFace": "http://www.tuotong-tech.com/api/Saas/Tenant/DbContent/"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user