You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.7 KiB
55 lines
1.7 KiB
{
|
|
"App": {
|
|
"CorsOrigins": "https://*.abc.com,http://localhost:9528,http://149.223.116.5:8088"
|
|
},
|
|
|
|
"ConnectionStrings": {
|
|
"Default": "Server=192.168.1.228;Database=TaskManager;User ID=sa;Password=ChangkeTec@2021;TrustServerCertificate=True"
|
|
|
|
},
|
|
|
|
//{
|
|
// "ConnectionStrings": {
|
|
// "DefaultConnection": "Server=localhost;Database=HANGFIRE_DEV;User ID=sa;Password=123456;TrustServerCertificate=True"
|
|
// },
|
|
// "Hangfire": {
|
|
// "ServerOptions": {
|
|
// "WorkerCount": 5 // 开发环境使用更少线程
|
|
// }
|
|
// }
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
"Hangfire": {
|
|
"Dashboard": {
|
|
"Path": "/hangfire", // Dashboard 访问路径
|
|
"RequireAuthorization": false // 是否需要授权
|
|
},
|
|
"Server": {
|
|
"WorkerCount": 5, // 工作线程数量
|
|
"Queues": [ "default", "critical", "background" ], // 队列优先级
|
|
"SchedulePollingInterval": 15000, // 调度轮询间隔(毫秒)
|
|
"HeartbeatInterval": "00:00:15", // 服务器心跳间隔
|
|
"ServerTimeout": "00:05:00", // 服务器超时时间
|
|
"ServerCheckInterval": "00:01:00" // 服务器状态检查间隔
|
|
},
|
|
"Storage": {
|
|
"JobExpirationCheckInterval": "00:01:00", // 作业过期检查间隔
|
|
"CountersAggregateInterval": "00:05:00", // 计数器聚合间隔
|
|
"QueuePollInterval": "00:00:15", // 队列轮询间隔
|
|
"PrepareSchemaIfNecessary": true, // 自动创建表结构
|
|
"SlidingInvisibilityTimeout": "00:30:00", // 作业处理超时时间
|
|
"UseRecommendedIsolationLevel": true, // 使用推荐的事务隔离级别
|
|
"EnableHeavyMigrations": false // 是否启用重量级迁移
|
|
},
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Hangfire": "Information"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|