fix(deploy): 公网 overlay 用 !override 覆盖内部端口绑定
Compose 合并后内部端口只绑 127.0.0.1,避免与基础 0.0.0.0 叠加导致起不来。 顺带给 JPUSH_PUSH_INTENT 加引号,并拒绝空 SERVER_IP。 Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
co-authored by
Cursor
multica-agent
parent
f1fe4a3928
commit
a71f6a0ce1
@@ -10,6 +10,16 @@ if [ ! -f .env ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# LiveKit --node-ip 依赖 SERVER_IP;空值时信令通、媒体宣告错误。
|
||||
# 不 source .env(JPUSH_PUSH_INTENT 含分号);只抽取这一项。
|
||||
if [ -z "${SERVER_IP:-}" ]; then
|
||||
SERVER_IP="$(awk -F= '/^SERVER_IP=/{v=$2} END{print v}' .env | tr -d '[:space:]"')"
|
||||
fi
|
||||
if [ -z "${SERVER_IP}" ]; then
|
||||
echo "SERVER_IP 为空,拒绝启动。请在 .env 填写本机公网 IP(LiveKit 媒体候选用)。" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# 注入 Master Secret(失败则停,避免空密钥启动)
|
||||
# shellcheck disable=SC1091
|
||||
source ./scripts/load-jpush-secret.sh
|
||||
|
||||
Reference in New Issue
Block a user