From 7196d0c8392778e11b6faf265f3584ef39d9d506 Mon Sep 17 00:00:00 2001 From: richjohnrambo Date: Mon, 14 Sep 2026 21:09:28 +0800 Subject: [PATCH] fix: include jpush handler in docker config --- docker/tinode/Dockerfile | 12 ++++++++++++ docker/tinode/Dockerfile.build | 9 +++++++++ docker/tinode/config.template | 14 ++++++++++++++ 3 files changed, 35 insertions(+) diff --git a/docker/tinode/Dockerfile b/docker/tinode/Dockerfile index 0e37584..a6e9b41 100644 --- a/docker/tinode/Dockerfile +++ b/docker/tinode/Dockerfile @@ -182,6 +182,18 @@ ENV TNPG_AUTH_TOKEN= # Tinode Push Gateway organization name as registered at console.tinode.co ENV TNPG_ORG= +# Disable JPush by default. The handler can be enabled from HotGo sys_config +# through the im_jpush dictionary group when the config stanza is present. +ENV JPUSH_PUSH_ENABLED=false +ENV JPUSH_API_DOMAIN=https://api.jpush.cn +ENV JPUSH_PUSH_PATH=/v3/push +ENV JPUSH_DEFAULT_TTL_SECONDS=86400 +ENV JPUSH_CALL_TTL_SECONDS=60 +ENV JPUSH_APNS_PRODUCTION=false +ENV JPUSH_USE_ALIAS=false +ENV JPUSH_CLASSIFICATION=1 +ENV JPUSH_TITLE=MeetingIM + # Video calls configuration. ENV WEBRTC_ENABLED=false ENV ICE_SERVERS_FILE=/opt/tinode/ice-servers.json diff --git a/docker/tinode/Dockerfile.build b/docker/tinode/Dockerfile.build index f93e728..853edb1 100644 --- a/docker/tinode/Dockerfile.build +++ b/docker/tinode/Dockerfile.build @@ -100,6 +100,15 @@ ENV TLS_ENABLED=false ENV FCM_PUSH_ENABLED=false ENV FCM_INCLUDE_ANDROID_NOTIFICATION=true ENV TNPG_PUSH_ENABLED=false +ENV JPUSH_PUSH_ENABLED=false +ENV JPUSH_API_DOMAIN=https://api.jpush.cn +ENV JPUSH_PUSH_PATH=/v3/push +ENV JPUSH_DEFAULT_TTL_SECONDS=86400 +ENV JPUSH_CALL_TTL_SECONDS=60 +ENV JPUSH_APNS_PRODUCTION=false +ENV JPUSH_USE_ALIAS=false +ENV JPUSH_CLASSIFICATION=1 +ENV JPUSH_TITLE=MeetingIM ENV WEBRTC_ENABLED=false ENV ICE_SERVERS_FILE=/opt/tinode/ice-servers.json ENV SERVER_STATUS_PATH='' diff --git a/docker/tinode/config.template b/docker/tinode/config.template index af3def4..acc70db 100644 --- a/docker/tinode/config.template +++ b/docker/tinode/config.template @@ -246,6 +246,20 @@ } } } + }, + { + "name": "jpush", + "config": { + "enabled": $JPUSH_PUSH_ENABLED, + "api_domain": "$JPUSH_API_DOMAIN", + "push_path": "$JPUSH_PUSH_PATH", + "default_ttl_seconds": $JPUSH_DEFAULT_TTL_SECONDS, + "call_ttl_seconds": $JPUSH_CALL_TTL_SECONDS, + "apns_production": $JPUSH_APNS_PRODUCTION, + "use_alias": $JPUSH_USE_ALIAS, + "classification": $JPUSH_CLASSIFICATION, + "title": "$JPUSH_TITLE" + } } ],