appsettings.json 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {
  2. "Sers": {
  3. "//Mq":" 消息队列配置",
  4. "Mq": {
  5. "Socket": {
  6. "//host":" ServiceCenter 服务端 host地址",
  7. "host": "127.0.0.1",
  8. "//port":" ServiceCenter 服务端 监听端口号 ",
  9. "port": 10345,
  10. "//(x.1)workThread":" 后台处理消息的线程个数(单位个,默认16) ",
  11. "workThreadCount": 16,
  12. "//(x.2)ping":" ",
  13. "//pingTimeout":" 心跳测试超时时间(单位ms,默认2000)",
  14. "pingTimeout": 30000,
  15. "//pingRetryCount":" 心跳测试失败重试次数(单位次,默认3)",
  16. "pingRetryCount": 10,
  17. "//pingInterval":" 心跳测试时间间隔(单位ms,默认1000)",
  18. "pingInterval": 10000,
  19. "//(x.3)request":" ",
  20. "//requestTimeout":" 请求超时时间(单位ms,默认300000)",
  21. "requestTimeout": 60000,
  22. "//(x.4)secretKey":" 连接秘钥,用以验证连接安全性。服务端和客户端必须一致 ",
  23. "secretKey": "SersSocketMq"
  24. }
  25. },
  26. "Gateway": {
  27. "//Console_PrintLog":" print the log to console. default:false ",
  28. "Console_PrintLog":"false",
  29. "Rpc":{ "CallerSource":"OutSide"},
  30. "WebHost":{
  31. "http_port":"6008", "workThreadCount":16,
  32. "//ResponseDefaultContentType":" Response Default Content-Type ",
  33. "ResponseDefaultContentType": "application/json; charset=UTF-8",
  34. "//ResponseExtHeaders":" Response Ext Headers.(enable CORS)",
  35. "ResponseExtHeaders": "\nAccess-Control-Allow-Headers: Authorization,authorization,Content-Type\nAccess-Control-Allow-Headers: *\nAccess-Control-Allow-Credentials: true\nAccess-Control-Allow-Origin: *"
  36. },
  37. "StationRegist_RegistArg":
  38. { "serviceStationInfo": {"serviceStationKey":"CGateway001","stationVersion":"1.2.0","serviceStationName":"CGateway"}
  39. ,"deviceInfo": {"deviceKey":"CGateway001","OSPlatform":"Linux","OSArchitecture":"X64","OSDescription":"Ubuntu","MachineName":"Linux"}
  40. ,"apiNodes":[]
  41. }
  42. }
  43. }
  44. }