chore(deploy): удалена неиспользуемая функция turn_shared_secret
This commit is contained in:
@@ -902,19 +902,6 @@ render_turn_relay_servers() {
|
|||||||
"$TURN_RELAY_HOST" "$TURN_RELAY_TLS_PORT" "$TURN_RELAY_USER" "$TURN_RELAY_PASSWORD"
|
"$TURN_RELAY_HOST" "$TURN_RELAY_TLS_PORT" "$TURN_RELAY_USER" "$TURN_RELAY_PASSWORD"
|
||||||
}
|
}
|
||||||
|
|
||||||
# turn_shared_secret — общий секрет для coturn (use-auth-secret) и LiveKit.
|
|
||||||
# При --reconfigure сохраняется из существующего .env, иначе генерируется.
|
|
||||||
turn_shared_secret() {
|
|
||||||
if [ -n "${TURN_SECRET_RESOLVED:-}" ]; then
|
|
||||||
printf '%s' "$TURN_SECRET_RESOLVED"
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
if [ -f "$GLCHAT_ENV_FILE" ]; then
|
|
||||||
TURN_SECRET_RESOLVED="$(env_get TURN_SECRET || true)"
|
|
||||||
fi
|
|
||||||
[ -n "${TURN_SECRET_RESOLVED:-}" ] || TURN_SECRET_RESOLVED="$(rand_hex 32)"
|
|
||||||
printf '%s' "$TURN_SECRET_RESOLVED"
|
|
||||||
}
|
|
||||||
|
|
||||||
# install_turn_certificate копирует сертификат TURN/TLS туда, где его читает
|
# install_turn_certificate копирует сертификат TURN/TLS туда, где его читает
|
||||||
# контейнер LiveKit. Продление выполняет glchat-cert-refresh.timer.
|
# контейнер LiveKit. Продление выполняет glchat-cert-refresh.timer.
|
||||||
|
|||||||
Reference in New Issue
Block a user