config.example.json 3.1 KB

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