VistarStarDataIntegration/admin.net.pro/Admin.NET/Vistar.Application/Configuration/Upload.json

29 lines
1.5 KiB
JSON
Raw Normal View History

{
"$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json",
"Upload": {
"Path": "upload/{yyyy}/{MM}/{dd}", // 文件上传目录
"MaxSize": 51200, // 文件最大限制KB1024*50
"ContentType": [ "image/jpg", "image/png", "image/jpeg", "image/gif", "image/bmp", "text/plain", "application/pdf", "application/msword", "application/vnd.ms-excel", "application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.presentationml.presentation", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "video/mp4", "application/wps-office.docx", "application/wps-office.xlsx", "application/wps-office.pptx", "application/vnd.android.package-archive" ],
"EnableMd5": false // 启用文件MDF5验证-防止重复上传
},
"OSSProvider": {
"IsEnable": false,
"Provider": "Minio", // OSS提供者 Invalid/Minio/Aliyun/QCloud/Qiniu/HuaweiCloud
"Endpoint": "xxx.xxx.xxx.xxx:8090", // 节点/API地址在腾讯云OSS中表示AppId
"Region": "xxx.xxx.xxx.xxx", // 地域
"AccessKey": "",
"SecretKey": "",
"IsEnableHttps": false, // 是否启用HTTPS
"IsEnableCache": true, // 是否启用缓存
"Bucket": "admin.net",
"CustomHost": "" // 自定义Host拼接外链的Host若空则使用Endpoint拼接
},
"SSHProvider": {
"IsEnable": false,
"Host": "127.0.0.1",
"Port": 8222,
"Username": "sshuser",
"Password": "Password.1"
}
}