Files
memind/scripts/g2-h5-tunnel.sh
T
John 6ee6fd64dd Add MindSpace page live edit, chat skills, and H5 deploy tooling.
Introduce page edit sessions with draft preview and patch API, chat skill picker, user memory profile, h5ApiBase resolution, voice WAV transport, and scripts for 105/g2 deployment and Plaza local dev.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-15 22:09:38 -07:00

16 lines
480 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
# 正向 SSH 隧道:本机 18080 → 105 goose-h5 :8080g2 负载均衡 upstream
set -euo pipefail
HOST="${G2_TUNNEL_HOST:-ssh105}"
LOCAL_PORT="${G2_TUNNEL_LOCAL_PORT:-18080}"
REMOTE_HOST="${G2_TUNNEL_REMOTE_HOST:-127.0.0.1}"
REMOTE_PORT="${G2_TUNNEL_REMOTE_PORT:-8080}"
exec ssh -N \
-o ServerAliveInterval=30 \
-o ServerAliveCountMax=3 \
-o ExitOnForwardFailure=yes \
-L "127.0.0.1:${LOCAL_PORT}:${REMOTE_HOST}:${REMOTE_PORT}" \
"${HOST}"