131 lines
6.8 KiB
JSON
131 lines
6.8 KiB
JSON
{
|
||
"Logging": {
|
||
"LogFileDirectory": "D:\\Net8\\FileServer\\Log",
|
||
"MaxFileSizeMB": 20
|
||
},
|
||
"UrlOrigins": "http://192.168.195.68,http://172.16.253.53:5235,http://localhost,http://localhost:8088,http://localhost:5173,http://localhost:5235", //这个参数是反向指向的地址,也是跨域访问的地址,包含Vue内WebSitePolicy设置WebSite
|
||
"ApplicationUrl": "http://localhost:5235", //這個地址是最外层用户访问的,不是反向指向的地址https://uat.youjiala.com
|
||
"CloudBuilder": {
|
||
"Culture": "zh-cn",
|
||
"DbContexts": {
|
||
"MasterDbContext": {
|
||
"DbContextTypeName": "MasterDbContext",
|
||
"ConnectionString": "server=nas.youjiala.com;port=3307;database=Furion;uid=root;pwd=Root@1237890;CharSet=utf8mb4;",
|
||
"DatabaseType": "MySql",
|
||
"LazyLoadingProxiesEnabled": true,
|
||
"AuditEntityEnabled": true,
|
||
"AutoMigrationEnabled": true
|
||
},
|
||
"SecondaryDbContext": {
|
||
"DbContextTypeName": "SecondaryDbContext",
|
||
"ConnectionString": "Server=localhost\\SQLEXPRESS;Database=Furion;User=sa;Password=owen123456;MultipleActiveResultSets=True;TrustServerCertificate=true",
|
||
"DatabaseType": "SqlServer",
|
||
"LazyLoadingProxiesEnabled": true,
|
||
"AuditEntityEnabled": true,
|
||
"AutoMigrationEnabled": true
|
||
}
|
||
},
|
||
"MailSender": {
|
||
"Host": "smtp.mxhichina.com",
|
||
"Port": 587,
|
||
"EnableSsl": true,
|
||
"DisplayName": "OSharp邮件发送",
|
||
"UserName": "osharpsender@66soft.net",
|
||
"Password": "OSharp147963"
|
||
},
|
||
"Authorization": {
|
||
"EnableGlobalAuthorize": false
|
||
}, //全局授权
|
||
"Jwt": {
|
||
"Issuer": "Owen Chen",
|
||
"Audience": "Cloud Builder",
|
||
"Secret": "{8619F7C3-B53C-4B85-99F0-983D351ECD82}",
|
||
"AccessExpireMins": 120, //2小时过期
|
||
"RefreshExpireMins": 86400, // 60天重刷新过期时间
|
||
"IsRefreshAbsoluteExpired": false
|
||
},
|
||
"Redis": {
|
||
"Configuration": "localhost",
|
||
"InstanceName": "CloudBuilder:"
|
||
},
|
||
"WebAuthn": {
|
||
"//": "RpId is the registrable domain suffix of Origin's host. It is a domain (or IP), NOT a full URL — never include the port. Origin is the full URL (scheme + host + port + path) the browser is loading the page from. For IP-based origins the rpId is just the IP (e.g. '172.16.253.243'); the port goes in Origin only. Examples: dev → RpId 'localhost' / Origin 'https://localhost:8000'; UAT → RpId '172.16.253.243' / Origin 'https://172.16.253.243:8002'; prod → RpId 'www.youjiala.com' / Origin 'https://www.youjiala.com'.",
|
||
"RpId": "localhost",
|
||
"RpName": "Cloud Builder",
|
||
"Origin": "http://localhost:8088",
|
||
"TimeoutMs": 60000
|
||
}
|
||
},
|
||
"FileServiceSettings": {
|
||
"PhysicalFileDirectory": "D:\\Net8\\FileServer",
|
||
"UploadFileDirectory": "D:\\Net8\\FileServer\\Upload",
|
||
"BackupFileDirectory": "D:\\Net8\\FileServer\\Backup",
|
||
"ScaleFileDirectory": "D:\\Net8\\FileServer\\Scale",
|
||
"RequestPath": "/FileServer", //如果是IIS反向代理来的,那么要在本地给这个文件添加IUSR,IIS_IUSRS权限
|
||
"DmsFileDirectory": "DmsFile",
|
||
"ExcelOutputDirectory": "D:\\Net8\\FileServer\\Output"
|
||
},
|
||
"ScheduleTask": {
|
||
"Ffmpeg": "RunTask"
|
||
},
|
||
"Ffmpeg": {
|
||
"Path": "D:\\NET8\\Exe\\ffmpeg\\bin\\ffmpeg.exe", //视频转码
|
||
"Pictrue": " -i {0} -ss 00:00:2.000 -frames:v 1 -vf \"scale=1280:-2\" -q:v 4 {1}", //" -i {0} -ss 00:00:2.000 -frames:v 1 {1}",
|
||
"Arguments": "-i {0}{1} -c:v libx264 -preset veryfast -crf 26 -profile:v main -level 3.1 -vf \"scale='min(1280,iw)':-2\" -maxrate 1500k -bufsize 2400k -c:a aac -b:a 96k -ac 2 -ar 44100 -start_number 0 -hls_time 3 -hls_list_size 0 -hls_flags independent_segments -f hls {2}" //0-源路径,1-切片秒数,2-目标路径
|
||
},
|
||
"IdCardOcr": {
|
||
"ApiUrl": "https://web.youjiala.com/api/v1/idcard/recognize", //身份证 OCR 识别服务(server-to-server 调用,无浏览器跨域)
|
||
"ApiKey": "3444df79189bbf16e872d109c5d56bc7684e24645c39b416", //API_TOKENS 中 win-service 的 Bearer Token(服务端调用专用,frontend 的不可用)
|
||
"Side": "auto", //识别面:auto/front/back
|
||
"TimeoutSeconds": 30
|
||
},
|
||
"CloudBuilder.Topshelf": {
|
||
"Path": "D:\\MAFAI\\CloudBuilder.Topshelf\\bin\\Debug\\net8.0\\CloudBuilder.Topshelf.exe" //图片压缩
|
||
},
|
||
"SecuritySettings": {
|
||
"RsaPublicKey": "-----BEGIN PUBLIC KEY-----MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC8HMr2CBpoZPm3t9tCVlrKtTmI4jNJc7/HhxjIEiDjC8czP4PV+44LjXvLYcSV0fwi6nE4LH2c5PBPEnPfqp0g8TZeX+bYGvd70cXee9d8wHgBqi4k0J0X33c0ZnW7JruftPyvJo9OelYSofBXQTcwI+3uIl/YvrgQRv6A5mW01QIDAQAB-----END PUBLIC KEY-----",
|
||
"RsaPrivateKey": "-----BEGIN RSA PRIVATE KEY-----MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBALwcyvYIGmhk+be320JWWsq1OYjiM0lzv8eHGMgSIOMLxzM/g9X7jguNe8thxJXR/CLqcTgsfZzk8E8Sc9+qnSDxNl5f5tga93vRxd5713zAeAGqLiTQnRffdzRmdbsmu5+0/K8mj056VhKh8FdBNzAj7e4iX9i+uBBG/oDmZbTVAgMBAAECgYEAmgNU5NTDkj9B+Pnt6UU8doSjw3+3j+bV2K2yS3QUOvAUus/Ax7x6ktjWxzCXvDY9IfUil2RNv9vtKEAqYLCWjc+lf8PV/yH1b7NEgyeAPBXtAJRoOnmYL2bdPW92kP9KgxJruF6Dz/C5AmMOncsvq8ABD+9Darn4p8dwj2ZC4O0CQQDf/AHmZsQokEItfCy4mHS9UbxbfIhEUv1ApPh/+Sr7NkJkHWYCtBQo+8jKO6zurAZQgWBPD1XX2UE4R+VIiZazAkEA1wAqtMvGhccyRZr+6kpkpDIa8+9jOE+nGUzqTDvgCID6as8AzOONFVVK6m/UUqkhcJ8Qu1pF36BGojy5BX2KVwJBAJSFpbji0hXXupowqfLp3RcgmNbNWAp+QUJZYhJx5cdYbmO2fssyH+AhPT6knYJR/YnqkDM8hv6vKCkqu2YDHjMCQAOA8TE5EOclM+CGghj3VWSHnIDVKdzFD4gOBNNxNlltIKeU8AJmwunSFgJ0CBXAw9a+ANvMwM7AIeaK7sj0HskCQAvxfDCq7gaNx+pfu0FHG8Gix08A/A6foggBl1fVu+L9sr9ZuOQ3HbXnl28F9ewuB9xdjnLUDjp7W7U0pB+vKoQ=-----END RSA PRIVATE KEY-----",
|
||
"DescKey": "052636a8b1469efdf5dc0034a3c5bb34",
|
||
"DefaultActor": "VIEW_SYSTEM"
|
||
},
|
||
"NetDiskQuota": {
|
||
"//": "网盘额度,按 security_user.user_type 取:U=未认证/N=普通用户/V=VIP/S=SVIP;值支持 T/G/M/K 单位(大小写兼容),解析后换算为 KB(dms_file.file_size 单位即 KB)",
|
||
"U": "2G",
|
||
"N": "100G",
|
||
"V": "500G",
|
||
"S": "1T"
|
||
},
|
||
"IpRateLimiting": {
|
||
"EnableEndpointRateLimiting": true, //False: globally executed, true: executed for each
|
||
"StackBlockedRequests": false, //False: Number of rejections should be recorded on another counter
|
||
"RealIpHeader": "X-Real-IP",
|
||
"ClientIdHeader": "X-ClientId",
|
||
"IpWhitelist": [], //白名单
|
||
"EndpointWhitelist": [],
|
||
"ClientWhitelist": [],
|
||
"HttpStatusCode": 200,
|
||
"QuotaExceededResponse": {
|
||
"Content": "{{\"code\":429,\"msg\":\"访问过于频繁,请稍后重试\",\"data\":null}}",
|
||
"ContentType": "application/json",
|
||
"StatusCode": 200
|
||
},
|
||
"GeneralRules": [
|
||
{
|
||
"Endpoint": "*",
|
||
"Period": "1s",
|
||
"Limit": 5
|
||
},
|
||
{
|
||
"Endpoint": "*",
|
||
"Period": "1m",
|
||
"Limit": 50
|
||
},
|
||
{
|
||
"Endpoint": "*",
|
||
"Period": "12h",
|
||
"Limit": 500
|
||
}
|
||
]
|
||
},
|
||
"AllowedHosts": "*"
|
||
} |