mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-10-26 21:22:16 +08:00
feat: add openim task list
Signed-off-by: Xinwei Xiong(cubxxw) <3293172751nss@gmail.com>
This commit is contained in:
parent
32249a3ccc
commit
1ed37f80c8
@ -36,6 +36,13 @@ API_URL=${API_URL}
|
|||||||
# Default: DATA_DIR=./
|
# Default: DATA_DIR=./
|
||||||
DATA_DIR=${DATA_DIR}
|
DATA_DIR=${DATA_DIR}
|
||||||
|
|
||||||
|
# Choose the appropriate image address, the default is GITHUB image,
|
||||||
|
# you can choose docker hub, for Chinese users can choose Ali Cloud
|
||||||
|
# export IMAGE_REGISTRY="ghcr.io/openimsdk"
|
||||||
|
# export IMAGE_REGISTRY="openim"
|
||||||
|
# export IMAGE_REGISTRY="registry.cn-hangzhou.aliyuncs.com/openimsdk"
|
||||||
|
IMAGE_REGISTRY=${IMAGE_REGISTRY}
|
||||||
|
|
||||||
# ======================================
|
# ======================================
|
||||||
# ========= Network Configuration ======
|
# ========= Network Configuration ======
|
||||||
# ======================================
|
# ======================================
|
||||||
@ -227,7 +234,6 @@ OPENIM_WEB_PORT=${OPENIM_WEB_PORT}
|
|||||||
# Default: OPENIM_WEB_ADDRESS=172.28.0.1
|
# Default: OPENIM_WEB_ADDRESS=172.28.0.1
|
||||||
OPENIM_WEB_ADDRESS=${OPENIM_WEB_NETWORK_ADDRESS}
|
OPENIM_WEB_ADDRESS=${OPENIM_WEB_NETWORK_ADDRESS}
|
||||||
|
|
||||||
|
|
||||||
# ======================================
|
# ======================================
|
||||||
# ========= OpenIM Server ==============
|
# ========= OpenIM Server ==============
|
||||||
# ======================================
|
# ======================================
|
||||||
|
|||||||
@ -226,18 +226,18 @@ push:
|
|||||||
enable: ${PUSH_ENABLE}
|
enable: ${PUSH_ENABLE}
|
||||||
geTui:
|
geTui:
|
||||||
pushUrl: "${GETUI_PUSH_URL}"
|
pushUrl: "${GETUI_PUSH_URL}"
|
||||||
masterSecret: ""
|
masterSecret: ${GETUI_MASTER_SECRET}
|
||||||
appKey: ""
|
appKey: ${GETUI_APP_KEY}
|
||||||
intent: ""
|
intent: ${GETUI_INTENT}
|
||||||
channelID: ""
|
channelID: ${GETUI_CHANNEL_ID}
|
||||||
channelName: ""
|
channelName: ${GETUI_CHANNEL_NAME}
|
||||||
fcm:
|
fcm:
|
||||||
serviceAccount: "${FCM_SERVICE_ACCOUNT}"
|
serviceAccount: "${FCM_SERVICE_ACCOUNT}"
|
||||||
jpns:
|
jpns:
|
||||||
appKey:
|
appKey: ${JPNS_APP_KEY}
|
||||||
masterSecret:
|
masterSecret: ${JPNS_MASTER_SECRET}
|
||||||
pushUrl:
|
pushUrl: ${JPNS_PUSH_URL}
|
||||||
pushIntent:
|
pushIntent: ${JPNS_PUSH_INTENT}
|
||||||
|
|
||||||
# App manager configuration
|
# App manager configuration
|
||||||
#
|
#
|
||||||
|
|||||||
@ -128,8 +128,9 @@ services:
|
|||||||
|
|
||||||
openim-web:
|
openim-web:
|
||||||
# image: ghcr.io/openimsdk/openim-web:latest
|
# image: ghcr.io/openimsdk/openim-web:latest
|
||||||
image: registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-web:latest
|
# image: registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-web:latest
|
||||||
# image: openim/openim-web:latest
|
# image: openim/openim-web:latest
|
||||||
|
image: ${IMAGE_REGISTRY}/openim-web:latest
|
||||||
container_name: openim-web
|
container_name: openim-web
|
||||||
environment:
|
environment:
|
||||||
- OPENIM_WEB_DIST_PATH=${OPENIM_WEB_DIST_PATH}
|
- OPENIM_WEB_DIST_PATH=${OPENIM_WEB_DIST_PATH}
|
||||||
@ -142,9 +143,10 @@ services:
|
|||||||
ipv4_address: ${OPENIM_WEB_NETWORK_ADDRESS}
|
ipv4_address: ${OPENIM_WEB_NETWORK_ADDRESS}
|
||||||
|
|
||||||
# openim-server:
|
# openim-server:
|
||||||
# image: ghcr.io/openimsdk/openim-server:main
|
# # image: ghcr.io/openimsdk/openim-server:main
|
||||||
# # image: registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-server:main
|
# # image: registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-server:main
|
||||||
# # image: openim/openim-server:main
|
# # image: openim/openim-server:main
|
||||||
|
# image: ${IMAGE_REGISTRY}/openim-server:main
|
||||||
# # build: .
|
# # build: .
|
||||||
# container_name: openim-server
|
# container_name: openim-server
|
||||||
# ports:
|
# ports:
|
||||||
|
|||||||
@ -62,6 +62,7 @@ echo "+++ The port being checked: ${OPENIM_DEPENDENCY_PORT_LISTARIES[@]}"
|
|||||||
|
|
||||||
set +e
|
set +e
|
||||||
|
|
||||||
|
# Later, after discarding Docker, the Docker keyword is unreliable, and Kubepods is used
|
||||||
if grep -qE 'docker|kubepods' /proc/1/cgroup || [ -f /.dockerenv ]; then
|
if grep -qE 'docker|kubepods' /proc/1/cgroup || [ -f /.dockerenv ]; then
|
||||||
openim::color::echo ${COLOR_BLUE} "Environment in the interior of the container"
|
openim::color::echo ${COLOR_BLUE} "Environment in the interior of the container"
|
||||||
else
|
else
|
||||||
|
|||||||
@ -69,6 +69,15 @@ def "ENV_FILE" ""${OPENIM_ROOT}"/scripts/install/environment.sh"
|
|||||||
def "CHAT_BRANCH" "main"
|
def "CHAT_BRANCH" "main"
|
||||||
def "SERVER_BRANCH" "main"
|
def "SERVER_BRANCH" "main"
|
||||||
|
|
||||||
|
# Choose the appropriate image address, the default is GITHUB image,
|
||||||
|
# you can choose docker hub, for Chinese users can choose Ali Cloud
|
||||||
|
# export IMAGE_REGISTRY="ghcr.io/openimsdk"
|
||||||
|
# export IMAGE_REGISTRY="openim"
|
||||||
|
# export IMAGE_REGISTRY="registry.cn-hangzhou.aliyuncs.com/openimsdk"
|
||||||
|
def "IMAGE_REGISTRY" "ghcr.io/openimsdk"
|
||||||
|
# def "IMAGE_REGISTRY" "openim"
|
||||||
|
# def "IMAGE_REGISTRY" "registry.cn-hangzhou.aliyuncs.com/openimsdk"
|
||||||
|
|
||||||
###################### OpenIM Docker Network ######################
|
###################### OpenIM Docker Network ######################
|
||||||
# 设置 Docker 网络的网段
|
# 设置 Docker 网络的网段
|
||||||
readonly DOCKER_BRIDGE_SUBNET=${DOCKER_BRIDGE_SUBNET:-'172.28.0.0/16'}
|
readonly DOCKER_BRIDGE_SUBNET=${DOCKER_BRIDGE_SUBNET:-'172.28.0.0/16'}
|
||||||
@ -285,11 +294,16 @@ def "WEBSOCKET_TIMEOUT" "10" # Websocket超时
|
|||||||
def "PUSH_ENABLE" "getui" # 推送是否启用
|
def "PUSH_ENABLE" "getui" # 推送是否启用
|
||||||
# GeTui推送URL
|
# GeTui推送URL
|
||||||
readonly GETUI_PUSH_URL=${GETUI_PUSH_URL:-'https://restapi.getui.com/v2/$appId'}
|
readonly GETUI_PUSH_URL=${GETUI_PUSH_URL:-'https://restapi.getui.com/v2/$appId'}
|
||||||
|
def "GETUI_MASTER_SECRET" "" # GeTui主密钥
|
||||||
|
def "GETUI_APP_KEY" "" # GeTui应用密钥
|
||||||
|
def "GETUI_INTENT" "" # GeTui推送意图
|
||||||
|
def "GETUI_CHANNEL_ID" "" # GeTui渠道ID
|
||||||
|
def "GETUI_CHANNEL_NAME" "" # GeTui渠道名称
|
||||||
def "FCM_SERVICE_ACCOUNT" "x.json" # FCM服务账户
|
def "FCM_SERVICE_ACCOUNT" "x.json" # FCM服务账户
|
||||||
def "JPNS_APP_KEY" # JPNS应用密钥
|
def "JPNS_APP_KEY" "" # JPNS应用密钥
|
||||||
def "JPNS_MASTER_SECRET" # JPNS主密钥
|
def "JPNS_MASTER_SECRET" "" # JPNS主密钥
|
||||||
def "JPNS_PUSH_URL" # JPNS推送URL
|
def "JPNS_PUSH_URL" "" # JPNS推送URL
|
||||||
def "JPNS_PUSH_INTENT" # JPNS推送意图
|
def "JPNS_PUSH_INTENT" "" # JPNS推送意图
|
||||||
def "MANAGER_USERID_1" "openIM123456" # 管理员ID 1
|
def "MANAGER_USERID_1" "openIM123456" # 管理员ID 1
|
||||||
def "MANAGER_USERID_2" "openIM654321" # 管理员ID 2
|
def "MANAGER_USERID_2" "openIM654321" # 管理员ID 2
|
||||||
def "MANAGER_USERID_3" "openIMAdmin" # 管理员ID 3
|
def "MANAGER_USERID_3" "openIMAdmin" # 管理员ID 3
|
||||||
|
|||||||
@ -54,14 +54,14 @@ function openim::push::start()
|
|||||||
openim::log::status "Start OpenIM Push, binary root: ${SERVER_NAME}"
|
openim::log::status "Start OpenIM Push, binary root: ${SERVER_NAME}"
|
||||||
openim::log::info "Start OpenIM Push, path: ${OPENIM_PUSH_BINARY}"
|
openim::log::info "Start OpenIM Push, path: ${OPENIM_PUSH_BINARY}"
|
||||||
|
|
||||||
openim::util::stop_services_with_name ${SERVER_NAME}
|
|
||||||
|
|
||||||
openim::log::status "prepare start push process, path: ${OPENIM_PUSH_BINARY}"
|
openim::log::status "prepare start push process, path: ${OPENIM_PUSH_BINARY}"
|
||||||
openim::log::status "prepare start push process, port: ${OPENIM_PUSH_PORT}, prometheus port: ${PUSH_PROM_PORT}"
|
openim::log::status "prepare start push process, port: ${OPENIM_PUSH_PORT}, prometheus port: ${PUSH_PROM_PORT}"
|
||||||
|
|
||||||
OPENIM_PUSH_PORTS_ARRAY=$(openim::util::list-to-string ${OPENIM_PUSH_PORT} )
|
OPENIM_PUSH_PORTS_ARRAY=$(openim::util::list-to-string ${OPENIM_PUSH_PORT} )
|
||||||
PUSH_PROM_PORTS_ARRAY=$(openim::util::list-to-string ${PUSH_PROM_PORT} )
|
PUSH_PROM_PORTS_ARRAY=$(openim::util::list-to-string ${PUSH_PROM_PORT} )
|
||||||
|
|
||||||
|
openim::util::stop_services_with_name ${SERVER_NAME}
|
||||||
|
|
||||||
openim::log::status "push port list: ${OPENIM_PUSH_PORTS_ARRAY[@]}"
|
openim::log::status "push port list: ${OPENIM_PUSH_PORTS_ARRAY[@]}"
|
||||||
openim::log::status "prometheus port list: ${PUSH_PROM_PORTS_ARRAY[@]}"
|
openim::log::status "prometheus port list: ${PUSH_PROM_PORTS_ARRAY[@]}"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user