Novij Relay

Go-only Relay node для Novij Protocol: Relay Protocol v3, ntp-pq-v1, DSR, billing, nonce, transfer и ZK flows.

Go-only Relay node for Novij Protocol: Relay Protocol v3, ntp-pq-v1, DSR, billing, nonce, transfer, and ZK flows.

RU EN

Последняя версияLatest: 0.6.08.160354

Стабильная версияStable: 0.6.08.160354

Установка

Install

Последняя:

Latest:

curl -fsSL https://packages.novij.tech/relay/install.sh | sudo bash

Стабильная:

Stable:

curl -fsSL https://packages.novij.tech/relay/install.sh | sudo env NOVIJ_PACKAGE_CHANNEL=stable bash

Релизы

Releases

Команды

Commands

novij-relayctl health --local --timeout 2s
Проверяет локальный relay.Checks the local relay.
novij-relayctl version --local
Показывает установленную версию.Shows the installed version.
novij-relayctl update check --env /etc/novij/relay/updater.env
Проверяет manifest обновления.Checks the update manifest.
novij-relayctl update run --env /etc/novij/relay/updater.env
Ставит опубликованное обновление.Installs the published update.
novij-relayctl db migrate --database-url "$RELAY_DATABASE_URL"
Применяет миграции БД.Applies database migrations.
systemctl status novij-relay.service
Статус relay service.Relay service status.
systemctl status novij-relay-updater.timer
Статус автообновления.Auto-update timer status.

Частые сценарии

Common Scenarios

1. Установка через APT repository 1. Install through the APT repository
curl -fsSL https://packages.novij.tech/keys/novij-archive-keyring.gpg | sudo tee /usr/share/keyrings/novij-archive-keyring.gpg >/dev/null
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/novij-archive-keyring.gpg] https://packages.novij.tech/debian stable main' | sudo tee /etc/apt/sources.list.d/novij-relay.list >/dev/null
sudo apt-get update
sudo apt-get install -y novij-relay
2. Node-side auto-update 2. Node-side auto-update

Пакет ставит novij-relay-updater.timer. Нода сама проверяет stable.json на packages.novij.tech и обновляется без SSH rollout из GitLab.

The package installs novij-relay-updater.timer. The node checks stable.json on packages.novij.tech and updates itself without a GitLab SSH rollout.

sudo systemctl enable --now novij-relay-updater.timer
systemctl list-timers novij-relay-updater.timer
sudo novij-relayctl update check --env /etc/novij/relay/updater.env
3. Latency flags и rollback 3. Latency flags and rollback

Read-only latency flags могут быть включены по умолчанию. Рискованные write-path оптимизации остаются default-off и включаются только явным env-файлом на ноде.

Read-only latency flags may be enabled by default. Risky write-path optimizations stay default-off and are enabled only by an explicit node env file.

sudo install -d -m 0750 /etc/novij/relay.env.d
sudoedit /etc/novij/relay.env.d/common.conf
sudo systemctl restart novij-relay.service
4. Live latency gate 4. Live latency gate
novij-relayctl health --local --timeout 2s
/usr/share/novij/relay/bin/live_p95_gate_ino_hinata.sh --local --min-samples 20 --p95-limit-ms 100 --allow-5xx 0 --outlier-samples 5