config.example.json 3.1 KB

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