config.example.json 3.4 KB

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