open-im-server icon indicating copy to clipboard operation
open-im-server copied to clipboard

[Other]: How to configure server callback configuration items? How to introduce other branch code?

Open bitqiu01 opened this issue 2 years ago • 3 comments

What would you like to share?

问题1:怎么配置server callback配置项?例如url、单聊消息发送后?environment.sh文件好像没提供? 问题2:我看clone代码下来,server、chat默认几个版本的配置文件,怎么引入mian分支尝鲜呢?是直接把openim-server clone到对应文件吗?然后make init?

Additional information

No response

bitqiu01 avatar Dec 19 '23 09:12 bitqiu01

Hello! Thank you for filing an issue.

If this is a bug report, please include relevant logs to help us debug the problem.

Join slack 🤖 to connect and communicate with our developers.

kubbot avatar Dec 19 '23 09:12 kubbot

Sure, thx u question Question 1: Regarding the server callback configuration, such as URL and private message sending: currently, the callback feature is primarily used in the testing environment. If you want to experiment with it, you can initialize with make init and then modify the configuration files. After modifying the configuration, restart the service. Note that you should not run make init again after modifying the configuration files, as make init is intended only for initial setup of configuration files.

Question 2: For incorporating the latest versions from the main branch or experimenting with new features, the general approach involves upgrading logic, as the binary versions need to match the configuration versions in the config files. To integrate the latest updates from the openim-server main branch, you would typically clone the openim-server repository into the appropriate directory and then follow the initialization and configuration steps as needed. This ensures that your server runs with the updated code and corresponding configuration.

cubxxw avatar Dec 19 '23 16:12 cubxxw

config/config.yaml

callback: url: "" beforeSendSingleMsg: enable: false timeout: 5 failedContinue: true afterSendSingleMsg: enable: false timeout: 5 failedContinue: true beforeSendGroupMsg: enable: false timeout: 5 failedContinue: true afterSendGroupMsg: enable: false timeout: 5 failedContinue: true ...

skiffer-git avatar Jan 03 '24 06:01 skiffer-git

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

kubbot avatar Mar 05 '24 08:03 kubbot

This issue was closed because it has been stalled for 7 days with no activity.

kubbot avatar Mar 14 '24 08:03 kubbot