config.example.json 3.1 KB

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