From c5f640b2a9e42fc6eacffa1e6b0a90ad0aad2e62143542e9f7b8e80d7d783891 Mon Sep 17 00:00:00 2001 From: AidarKC Date: Wed, 2 Dec 2026 00:08:09 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B4=D0=B5=D0=BB=D0=B0=D1=82=D1=8C=20So?= =?UTF-8?q?lana=20RPC=20=D0=BD=D0=B5=D0=BE=D0=B1=D1=8F=D0=B7=D0=B0=D1=82?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BD=D1=8B=D0=BC=20=D0=B2=20UI-=D0=B4=D0=B5?= =?UTF-8?q?=D0=BF=D0=BB=D0=BE=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION.properties | 2 +- deploy/TEST_SERVERS.md | 2 +- deploy/scripts/test_shineupme_ui.sh | 9 +++------ deploy/scripts/test_t1_ui.sh | 10 +++------- deploy/scripts/test_t2_ui.sh | 10 +++------- deploy/scripts/test_t3_ui.sh | 10 +++------- 6 files changed, 14 insertions(+), 29 deletions(-) diff --git a/VERSION.properties b/VERSION.properties index 8644abcc..84ccff6b 100644 --- a/VERSION.properties +++ b/VERSION.properties @@ -1,2 +1,2 @@ -client.version=1.21.9 +client.version=1.21.10 server.version=1.17.7 diff --git a/deploy/TEST_SERVERS.md b/deploy/TEST_SERVERS.md index a357c116..37b3a833 100644 --- a/deploy/TEST_SERVERS.md +++ b/deploy/TEST_SERVERS.md @@ -51,7 +51,7 @@ ## Deploy -Для UI-деплоя установите `DEPLOY_SOLANA_ENDPOINT` **явно**. Скрипты теперь не содержат API-ключей и завершаются ошибкой, если endpoint не указан. +UI-скрипты используют публичный gateway соответствующего стенда по умолчанию (`https://<стенд>.shineup.me/solana-rpc`). При необходимости endpoint можно переопределить через `DEPLOY_SOLANA_ENDPOINT`. Скрипты не содержат API-ключей. Рекомендуется использовать собственный RPC gateway, например `/solana-rpc` на домене соответствующего стенда (после настройки Caddy по `deploy/SOLANA_RPC_GATEWAY_CADDY_SNIPPET.md`). Так ключ Helius остаётся на сервере и не попадает в клиентский JavaScript. Если gateway не настроен, можно временно использовать публичный Solana devnet RPC с ограничениями по нагрузке. diff --git a/deploy/scripts/test_shineupme_ui.sh b/deploy/scripts/test_shineupme_ui.sh index 152d775a..382bd78c 100755 --- a/deploy/scripts/test_shineupme_ui.sh +++ b/deploy/scripts/test_shineupme_ui.sh @@ -1,12 +1,9 @@ #!/usr/bin/env bash set -euo pipefail -# Use an explicit public RPC gateway URL. Never commit an Helius API key. -if [[ -z "${DEPLOY_SOLANA_ENDPOINT:-}" ]]; then - echo "ERROR: DEPLOY_SOLANA_ENDPOINT is required for test.shineup.me UI deploy." >&2 - echo "Set it to a working public RPC gateway (prefer https://test.shineup.me/solana-rpc)." >&2 - exit 1 -fi +# Use the public RPC gateway by default. An explicit DEPLOY_SOLANA_ENDPOINT +# still overrides it. Never commit an Helius API key. +DEPLOY_SOLANA_ENDPOINT="${DEPLOY_SOLANA_ENDPOINT:-https://test.shineup.me/solana-rpc}" REMOTE_HOST="player@t4.shineup.me" \ REMOTE_UI_DIR="/home/player/t4/UI" \ diff --git a/deploy/scripts/test_t1_ui.sh b/deploy/scripts/test_t1_ui.sh index d487259b..d5f32863 100644 --- a/deploy/scripts/test_t1_ui.sh +++ b/deploy/scripts/test_t1_ui.sh @@ -1,13 +1,9 @@ #!/usr/bin/env bash set -euo pipefail -# Use an explicit public RPC gateway URL. Never commit an Helius API key. -# Recommended: https://t1.shineup.me/solana-rpc (only if the proxy is configured). -if [[ -z "${DEPLOY_SOLANA_ENDPOINT:-}" ]]; then - echo "ERROR: DEPLOY_SOLANA_ENDPOINT is required for t1 UI deploy." >&2 - echo "Set it to a working public RPC gateway (prefer your /solana-rpc proxy)." >&2 - exit 1 -fi +# Use the public RPC gateway by default. An explicit DEPLOY_SOLANA_ENDPOINT +# still overrides it. Never commit an Helius API key. +DEPLOY_SOLANA_ENDPOINT="${DEPLOY_SOLANA_ENDPOINT:-https://t1.shineup.me/solana-rpc}" REMOTE_HOST="player@t1.shineup.me" \ REMOTE_UI_DIR="/home/player/t1/UI" \ diff --git a/deploy/scripts/test_t2_ui.sh b/deploy/scripts/test_t2_ui.sh index bec13586..6b0a094b 100644 --- a/deploy/scripts/test_t2_ui.sh +++ b/deploy/scripts/test_t2_ui.sh @@ -1,13 +1,9 @@ #!/usr/bin/env bash set -euo pipefail -# Use an explicit public RPC gateway URL. Never commit an Helius API key. -# Recommended: https://t2.shineup.me/solana-rpc (only if the proxy is configured). -if [[ -z "${DEPLOY_SOLANA_ENDPOINT:-}" ]]; then - echo "ERROR: DEPLOY_SOLANA_ENDPOINT is required for t2 UI deploy." >&2 - echo "Set it to a working public RPC gateway (prefer your /solana-rpc proxy)." >&2 - exit 1 -fi +# Use the public RPC gateway by default. An explicit DEPLOY_SOLANA_ENDPOINT +# still overrides it. Never commit an Helius API key. +DEPLOY_SOLANA_ENDPOINT="${DEPLOY_SOLANA_ENDPOINT:-https://t2.shineup.me/solana-rpc}" REMOTE_HOST="player@t2.shineup.me" \ REMOTE_UI_DIR="/home/player/t2/UI" \ diff --git a/deploy/scripts/test_t3_ui.sh b/deploy/scripts/test_t3_ui.sh index eb34a647..8f7deb77 100644 --- a/deploy/scripts/test_t3_ui.sh +++ b/deploy/scripts/test_t3_ui.sh @@ -1,13 +1,9 @@ #!/usr/bin/env bash set -euo pipefail -# Use an explicit public RPC gateway URL. Never commit an Helius API key. -# Recommended: https://t3.shineup.me/solana-rpc (only if the proxy is configured). -if [[ -z "${DEPLOY_SOLANA_ENDPOINT:-}" ]]; then - echo "ERROR: DEPLOY_SOLANA_ENDPOINT is required for t3 UI deploy." >&2 - echo "Set it to a working public RPC gateway (prefer your /solana-rpc proxy)." >&2 - exit 1 -fi +# Use the public RPC gateway by default. An explicit DEPLOY_SOLANA_ENDPOINT +# still overrides it. Never commit an Helius API key. +DEPLOY_SOLANA_ENDPOINT="${DEPLOY_SOLANA_ENDPOINT:-https://t3.shineup.me/solana-rpc}" REMOTE_HOST="player@t3.shineup.me" \ REMOTE_UI_DIR="/home/player/t3/UI" \