appsettings.json 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. {
  2. "Sers": {
  3. "Mq": {
  4. "Socket": {
  5. /* ServiceCenter ����� host��ַ */
  6. "host": "127.0.0.1",
  7. /* ServiceCenter ����� �����˿ں� */
  8. "port": 4501,
  9. /* �����DZ������� */
  10. //(x.1)workThread
  11. /* ��̨������Ϣ���̸߳�������λ����Ĭ��16�� */
  12. "workThreadCount": 16,
  13. //(x.2)ping
  14. /* �������Գ�ʱʱ�䣨��λms��Ĭ��2000�� */
  15. "pingTimeout": 20000,
  16. /* ��������ʧ�����Դ�������λ�Σ�Ĭ��3�� */
  17. "pingRetryCount": 3,
  18. /* ��������ʱ�������λms��Ĭ��1000�� */
  19. "pingInterval": 1000,
  20. //(x.3)request
  21. /* ����ʱʱ�䣨��λms��Ĭ��300000�� */
  22. "requestTimeout": 300000,
  23. //(x.4)secretKey
  24. /* ������Կ��������֤���Ӱ�ȫ�ԡ�����˺Ϳͻ��˱���һ�� */
  25. "secretKey": "SersSocketMq"
  26. }
  27. },
  28. /* ���л�����,�ɲ�ָ�� */
  29. "Serialization": {
  30. /* ���л��ַ����롣�ɲ�ָ����Ĭ�� UTF8��ֻ��Ϊ UTF7,UTF8,UTF32,ASCII,Unicode�� */
  31. "Encoding": "UTF8"
  32. },
  33. /* ApiStation վ������,�ɲ�ָ�� */
  34. "ApiStation": {
  35. /* �Ƿ� �������Api�ĵ�����Ϣ����ApiTrace��Log�ļ���Ĭ��:false */
  36. "PrintTrace": false,
  37. /* Ĭ��վ�����ƣ��ɶ��,�ɲ�ָ�� */
  38. "apiStationName": [ "JStationDemo" ],
  39. /* ���������ã�ͨ������Ӵ˰��л�ȡҪע���api���ɶ��,�ɲ�ָ���� */
  40. "DiscoveryConfig": [
  41. {
  42. /* ǿ��ָ��ApiStation���ơ��ɲ�ָ���������ȼ��Ӹߵ��ͣ� apiStationName_Force �� �ڴ����ϵ�SsStationNameAttribute����ָ�� �� apiStationName �� appsettings.jsonָ���� */
  43. "apiStationName_Force": "",
  44. /* ApiStation���ơ��ɲ�ָ���������ȼ��Ӹߵ��ͣ� apiStationName_Force �� �ڴ����ϵ�SsStationNameAttribute����ָ�� �� apiStationName �� appsettings.jsonָ���� */
  45. "apiStationName": "JStationDemo",
  46. /* �ڴ˰��в��ҷ���(�� StationDemo.Controllers) */
  47. "packageName": "StationDemo.Controllers",
  48. /* ǿ��·��ǰ׺,���磺"demo/v1"���ɲ�ָ���������ȼ��Ӹߵ��ͣ� routePrefix_Force���ڴ����ϵ�SsRoutePrefixAttribute����ָ�� �� routePrefix�� */
  49. "routePrefix_Force": "",
  50. /* ·��ǰ׺,���磺"demo/v1"���ɲ�ָ���������ȼ��Ӹߵ��ͣ� routePrefix_Force���ڴ����ϵ�SsRoutePrefixAttribute����ָ�� �� routePrefix �� */
  51. "routePrefix": ""
  52. }
  53. ]
  54. },
  55. /* ServiceStation����,�ɲ�ָ�� */
  56. "ServiceStation": {
  57. /* �Ƿ� �Զ��ϱ�cpu Usage��Ĭ��:false */
  58. "UsageReporter": false,
  59. /* print the log to console. default:false */
  60. "Console_PrintLog": true,
  61. /* ��������ע�����á������������ע��վ��ǰ �Ƿ��ӡ��Logger.Info�����������Ĭ��:false */
  62. "StationRegist_PrintRegistArg": false,
  63. /* serviceStationվ����Ϣ */
  64. "serviceStationInfo": {
  65. "serviceStationName": "JStationDemo",
  66. "serviceStationKey": "serviceStationKey_java001",
  67. "stationVersion": "1.2.0",
  68. "info": null
  69. }
  70. /* ����վ�㲿�������豸����Ϣ */
  71. ,"deviceInfo": {
  72. "deviceKey": "deviceKey_java001",
  73. "OSPlatform": "WINDOWS",
  74. "OSArchitecture": "X64",
  75. "OSDescription": "Microsoft Windows 10.0.17134 ",
  76. "ProcessArchitecture": "X64",
  77. "Is64BitOperatingSystem": true,
  78. "ProcessorCount": 8,
  79. "MachineName": "WIN10F",
  80. "OSVersion": "Microsoft Windows NT 6.2.9200.0",
  81. "WorkingSet": 28180480
  82. }
  83. }
  84. }
  85. }