config.example.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. {
  2. "port": 30003,
  3. "serverRole": "all",
  4. "qgProxyScope": "YOUR_DEPLOYMENT_KEY",
  5. "database": {
  6. "host": "YOUR_MYSQL_HOST",
  7. "database": "YOUR_DB_NAME",
  8. "port": 3306,
  9. "user": "YOUR_DB_USER",
  10. "password": "YOUR_DB_PASSWORD",
  11. "connectTimeout": 30000
  12. },
  13. "redis": {
  14. "host": "localhost",
  15. "port": 6379,
  16. "password": ""
  17. },
  18. "rabbitmq": {
  19. "url": "amqp://USER:PASSWORD@HOST:5672",
  20. "managementBaseUrl": "http://HOST:15672",
  21. "reconnectInterval": 5000,
  22. "lepaoScheduleTickMs": 2000,
  23. "lepaoScheduleBatch": 100,
  24. "mqPrefix": ""
  25. },
  26. "qk": {
  27. "passwordAesKey": "CHANGE_ME_TO_A_RANDOM_SECRET",
  28. "leaseMs": 90000,
  29. "heartbeatTtlSeconds": 45,
  30. "leaseWatcherIntervalMs": 30000,
  31. "staleTaskMs": 3600000,
  32. "memPerSlotMb": 3072,
  33. "memReserveMb": 1024,
  34. "maxSlotsCap": 10,
  35. "slotCapacityFactor": 1.5
  36. },
  37. "email": [
  38. {
  39. "host": "smtp.primary.example.com",
  40. "port": 587,
  41. "secure": false,
  42. "user": "noreply@primary.example.com",
  43. "password": "YOUR_SMTP_PASSWORD_1",
  44. "from": "Display Name <noreply@primary.example.com>"
  45. },
  46. {
  47. "host": "smtp.secondary.example.com",
  48. "port": 465,
  49. "secure": true,
  50. "user": "mail@secondary.example.com",
  51. "password": "YOUR_SMTP_PASSWORD_2",
  52. "from": "Display Name <mail@secondary.example.com>"
  53. },
  54. {
  55. "host": "smtp.zeptomail.example.com",
  56. "port": 587,
  57. "secure": true,
  58. "user": "noreply@mail.secondary.example.com",
  59. "password": "YOUR_SMTP_PASSWORD_3",
  60. "from": "Display Name <noreply@mail.secondary.example.com>"
  61. },
  62. {
  63. "host": "smtp.exmail.example.com",
  64. "port": 465,
  65. "secure": true,
  66. "user": "mail@domain.example.com",
  67. "password": "YOUR_SMTP_PASSWORD_4",
  68. "from": "Display Name <mail@domain.example.com>"
  69. }
  70. ],
  71. "url": "https://your-lepao-api.example.com",
  72. "url2": "http://127.0.0.1:30004",
  73. "url3": "http://127.0.0.1:30001",
  74. "runpy": "http://127.0.0.1:58000/api",
  75. "pay": {
  76. "url": "https://pay.example.com",
  77. "pid": 0,
  78. "key": "YOUR_PAY_KEY",
  79. "return_url": "https://your-site.example/#/store/orderDetail/",
  80. "uni_return_url": "https://m.your-site.example/#/pages/order/order-detail?id="
  81. },
  82. "unilogin": {
  83. "url": "https://open.example.com",
  84. "appid": "YOUR_APPID",
  85. "appkey": "YOUR_APPKEY",
  86. "return_url": "https://your-site.example/uniLogin/loginSuccess",
  87. "uni_return_url": "https://m.your-site.example/#/pages/login/login"
  88. },
  89. "qgChannelProxy": {
  90. "extractKey": "YOUR_EXTRACT_KEY",
  91. "authUser": "YOUR_AUTH_USER",
  92. "authPassword": "YOUR_AUTH_PASSWORD"
  93. },
  94. "server": "YOUR_SERVER_LABEL",
  95. "onebotv11": {
  96. "enabled": false,
  97. "transport": "reverse_ws",
  98. "reverseWsUrl": "ws://127.0.0.1:15700",
  99. "reverseWsPath": "/ws",
  100. "reverseWsHost": "0.0.0.0",
  101. "reverseWsPort": 15700,
  102. "reverseWsToken": "YOUR_WS_TOKEN",
  103. "callbackToken": "YOUR_CALLBACK_TOKEN",
  104. "ticketSenderNickname": "工单机器人",
  105. "selfId": "your-bot-id",
  106. "botName": "BotName",
  107. "botUuid": "your-bot-uuid"
  108. }
  109. }