Files
memind/scripts/wechat-egress-tunnel.sh
john 229805a070 Improve WeChat MP replies and ship MindSpace/H5 production updates.
Add WeChat service account routing with sync acks, connectivity tests, and context isolation; document deploy runbooks; and bundle related MindSpace, voice, Plaza, and server gateway changes for production rollout.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-19 23:06:43 +08:00

16 lines
425 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
SSH_HOST="${WECHAT_EGRESS_SSH_HOST:-ssh105}"
LOCAL_PORT="${WECHAT_EGRESS_LOCAL_PORT:-19090}"
REMOTE_HOST="${WECHAT_EGRESS_REMOTE_HOST:-127.0.0.1}"
REMOTE_PORT="${WECHAT_EGRESS_REMOTE_PORT:-19090}"
exec ssh \
-N \
-o ExitOnForwardFailure=yes \
-o ServerAliveInterval=30 \
-o ServerAliveCountMax=3 \
-L "127.0.0.1:${LOCAL_PORT}:${REMOTE_HOST}:${REMOTE_PORT}" \
"${SSH_HOST}"