config.example.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. },
  36. "email": [
  37. {
  38. "host": "smtp.primary.example.com",
  39. "port": 587,
  40. "secure": false,
  41. "user": "noreply@primary.example.com",
  42. "password": "YOUR_SMTP_PASSWORD_1",
  43. "from": "Display Name <noreply@primary.example.com>"
  44. },
  45. {
  46. "host": "smtp.secondary.example.com",
  47. "port": 465,
  48. "secure": true,
  49. "user": "mail@secondary.example.com",
  50. "password": "YOUR_SMTP_PASSWORD_2",
  51. "from": "Display Name <mail@secondary.example.com>"
  52. },
  53. {
  54. "host": "smtp.zeptomail.example.com",
  55. "port": 587,
  56. "secure": true,
  57. "user": "noreply@mail.secondary.example.com",
  58. "password": "YOUR_SMTP_PASSWORD_3",
  59. "from": "Display Name <noreply@mail.secondary.example.com>"
  60. },
  61. {
  62. "host": "smtp.exmail.example.com",
  63. "port": 465,
  64. "secure": true,
  65. "user": "mail@domain.example.com",
  66. "password": "YOUR_SMTP_PASSWORD_4",
  67. "from": "Display Name <mail@domain.example.com>"
  68. }
  69. ],
  70. "url": "https://your-lepao-api.example.com",
  71. "url2": "http://127.0.0.1:30004",
  72. "url3": "http://127.0.0.1:30001",
  73. "runpy": "http://127.0.0.1:58000/api",
  74. "pay": {
  75. "url": "https://pay.example.com",
  76. "pid": 0,
  77. "key": "YOUR_PAY_KEY",
  78. "return_url": "https://your-site.example/#/store/orderDetail/",
  79. "uni_return_url": "https://m.your-site.example/#/pages/order/order-detail?id="
  80. },
  81. "unilogin": {
  82. "url": "https://open.example.com",
  83. "appid": "YOUR_APPID",
  84. "appkey": "YOUR_APPKEY",
  85. "return_url": "https://your-site.example/uniLogin/loginSuccess",
  86. "uni_return_url": "https://m.your-site.example/#/pages/login/login"
  87. },
  88. "qgChannelProxy": {
  89. "extractKey": "YOUR_EXTRACT_KEY",
  90. "authUser": "YOUR_AUTH_USER",
  91. "authPassword": "YOUR_AUTH_PASSWORD"
  92. },
  93. "server": "YOUR_SERVER_LABEL",
  94. "onebotv11": {
  95. "enabled": false,
  96. "transport": "reverse_ws",
  97. "reverseWsUrl": "ws://127.0.0.1:15700",
  98. "reverseWsPath": "/ws",
  99. "reverseWsHost": "0.0.0.0",
  100. "reverseWsPort": 15700,
  101. "reverseWsToken": "YOUR_WS_TOKEN",
  102. "callbackToken": "YOUR_CALLBACK_TOKEN",
  103. "ticketSenderNickname": "工单机器人",
  104. "selfId": "your-bot-id",
  105. "botName": "BotName",
  106. "botUuid": "your-bot-uuid"
  107. }
  108. }