feat: add openim config

pull/1055/head
Xinwei Xiong(cubxxw) 2 years ago
parent 422ecceb71
commit c3841196c2

@ -30,7 +30,7 @@ MINIO_ENDPOINT=http://172.28.0.1:10005
# Base URL for the application programming interface (API). # Base URL for the application programming interface (API).
# Default: API_URL=http://172.28.0.1:10002 # Default: API_URL=http://172.28.0.1:10002
API_URL=http://172.28.0.1:10002 API_URL=http://127.0.0.1:10002
# Directory path for storing data files or related information. # Directory path for storing data files or related information.
# Default: DATA_DIR=./ # Default: DATA_DIR=./

@ -73,6 +73,11 @@ gen:
demo: demo:
@$(MAKE) go.demo @$(MAKE) go.demo
## versionchecker: Check version of openim. ✨
.PHONY: versionchecker
versionchecker:
@$(MAKE) go.versionchecker
## build: Build binaries by default ✨ ## build: Build binaries by default ✨
.PHONY: build .PHONY: build
build: build:

@ -211,17 +211,17 @@ Read: https://github.com/openimsdk/open-im-server/blob/main/deployments/README.m
</details> </details>
## :link: Relationship Between APP and OpenIM ## :link: OpenIM and your application
OpenIM isn't just an open-source instant messaging component, it's an integral part of your application ecosystem. Check out this diagram to understand how AppServer, AppClient, Open-IM-Server, and Open-IM-SDK interact. OpenIM isn't just an open-source instant messaging component, it's an integral part of your application ecosystem. Check out this diagram to understand how AppServer, AppClient, OpenIMServer, and OpenIMSDK interact.
![App-OpenIM Relationship](https://github.com/openimsdk/open-im-server/blob/main/docs/images/open-im-server.png) ![App-OpenIM Relationship](./docs/images/oepnim-design.png)
## :building_construction: Overall Architecture <!-- ## :building_construction: Overall Architecture
Delve into the heart of Open-IM-Server's functionality with our architecture diagram. Delve into the heart of Open-IM-Server's functionality with our architecture diagram.
![Overall Architecture](https://github.com/openimsdk/open-im-server/blob/main/docs/images/Architecture.jpg) ![Overall Architecture](./docs/images/Architecture.jpg) -->
## :hammer_and_wrench: To start developing OpenIM ## :hammer_and_wrench: To start developing OpenIM

@ -353,10 +353,6 @@ callback:
enable: false enable: false
timeout: 5 timeout: 5
failedContinue: true failedContinue: true
beforeUpdateUserInfo:
enable: false
timeout: 5
failedContinue: true
beforeCreateGroup: beforeCreateGroup:
enable: false enable: false
timeout: 5 timeout: 5

@ -199,9 +199,6 @@ It's crucial to verify the configurations by checking the connectivity between y
``` ```
## Config options ## Config options
... ...

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

@ -129,7 +129,7 @@ function openim::tools::post-start() {
openim::log::info "Post-start actions for OpenIM Tools..." openim::log::info "Post-start actions for OpenIM Tools..."
for tool in "${OPENIM_TOOLS_POST_START_NAME_LISTARIES[@]}"; do for tool in "${OPENIM_TOOLS_POST_START_NAME_LISTARIES[@]}"; do
openim::log::info "Starting ${tool}..." openim::log::info "Starting ${tool}..."
# openim::tools::start_service ${tool} openim::tools::start_service ${tool}
sleep 0.2 sleep 0.2
done done
} }

@ -17,7 +17,7 @@
# #
GO := go GO := go
GO_SUPPORTED_VERSIONS ?= 1.18|1.19|1.20|1.21 GO_SUPPORTED_VERSIONS ?= 1.18|1.19|1.20|1.21|1.22
GO_LDFLAGS += -X $(VERSION_PACKAGE).gitVersion=$(GIT_TAG) \ GO_LDFLAGS += -X $(VERSION_PACKAGE).gitVersion=$(GIT_TAG) \
-X $(VERSION_PACKAGE).gitCommit=$(GIT_COMMIT) \ -X $(VERSION_PACKAGE).gitCommit=$(GIT_COMMIT) \
@ -125,6 +125,10 @@ go.check-component:
@echo "===========> Checking openim component" @echo "===========> Checking openim component"
@$(ROOT_DIR)/scripts/install/openim-tools.sh openim::tools::pre-start @$(ROOT_DIR)/scripts/install/openim-tools.sh openim::tools::pre-start
## go.versionchecker: Design, detect some environment variables and versions
go.versionchecker:
@$(ROOT_DIR)/scripts/install/openim-tools.sh openim::tools::post-start
## go.build.verify: Verify that a suitable version of Go exists ## go.build.verify: Verify that a suitable version of Go exists
.PHONY: go.build.verify .PHONY: go.build.verify
go.build.verify: go.build.verify:

Loading…
Cancel
Save