No description
  • Go 37.3%
  • TypeScript 33.7%
  • JavaScript 23.5%
  • CSS 3.4%
  • HTML 1.1%
  • Other 1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-26 04:23:52 +03:00
.github Remove MCP and API tokens 2026-11-25 23:55:03 +03:00
cmd Add Telegram notification cards and polish node status UI 2026-11-26 02:41:10 +03:00
deploy Release 3.0.2: node actions and agent error messages 2026-11-26 02:22:52 +03:00
docs Add manual node order and align alert icons 2026-11-26 03:56:54 +03:00
internal Add manual node order and align alert icons 2026-11-26 03:56:54 +03:00
scripts Remove MCP and API tokens 2026-11-25 23:55:03 +03:00
web Regenerate TypeScript types for node position 2026-11-26 04:02:38 +03:00
.dockerignore Fix audit findings across CLI, API and deployment 2026-11-25 20:22:13 +03:00
.gitignore Add component tests for auth, node and user widgets 2026-11-16 20:26:07 +03:00
CHANGELOG.en.md Release 3.1.0 2026-11-26 04:12:23 +03:00
CHANGELOG.md Release 3.1.0 2026-11-26 04:12:23 +03:00
CONTRIBUTING.en.md Fix audit findings across API, reliability and web UI 2026-11-25 09:29:58 +00:00
CONTRIBUTING.md Fix audit findings across API, reliability and web UI 2026-11-25 09:29:58 +00:00
Dockerfile.node Refresh Alpine packages in runtime images 2026-11-24 20:23:46 +00:00
Dockerfile.panel Refresh Alpine packages in runtime images 2026-11-24 20:23:46 +00:00
go.mod Rename the Go module to soliton 2026-11-26 00:49:35 +03:00
go.sum Remove MCP and API tokens 2026-11-25 23:55:03 +03:00
LICENSE Add license, contribution workflow and release checklist 2026-11-14 13:18:58 +03:00
Makefile Remove MCP and API tokens 2026-11-25 23:55:03 +03:00
PERF.en.md Release 2.1.3: bilingual docs, IPv6 self-steal rule and UI loaders 2026-11-17 14:21:34 +03:00
PERF.md Release 2.1.3: bilingual docs, IPv6 self-steal rule and UI loaders 2026-11-17 14:21:34 +03:00
README.en.md Release 3.0.2: node actions and agent error messages 2026-11-26 02:22:52 +03:00
README.md Release 3.0.2: node actions and agent error messages 2026-11-26 02:22:52 +03:00
SECURITY.en.md Release 2.1.3: bilingual docs, IPv6 self-steal rule and UI loaders 2026-11-17 14:21:34 +03:00
SECURITY.md Release 2.1.3: bilingual docs, IPv6 self-steal rule and UI loaders 2026-11-17 14:21:34 +03:00
tygo.yaml Rename the Go module to soliton 2026-11-26 00:49:35 +03:00

Русский · English

Soliton

Soliton logo

Xray control panel: nodes with an agent, users and subscriptions, configuration, traffic and backups in one place. Single-tenant, self-hosted, no billing and no enterprise add-ons.

Status: a working panel for personal and small self-hosted deployments. License — MIT. Full documentation — docs/README.en.md.

Features

  • Panel on Go + React, PostgreSQL 18, HTTPS through Caddy or an existing proxy.
  • Nodes with an agent: a dedicated Xray config per node, xray -test validation, a supervisor and automatic restarts.
  • Users, base64 subscriptions, QR codes and individual VLESS links; traffic quota, expiry date and device limit by HWID.
  • Adding and removing users live through the Xray HandlerService without restarting the core.
  • Traffic accounting via the stats API, online users, monthly reset and quotas.
  • Self-steal on an nginx unix socket with ACME, WARP, config templates and key generators.
  • PostgreSQL backups with restore verification, retention and delivery to Telegram.
  • 2FA, audit log, five color palettes, Russian and English UI, Docker images for amd64/arm64.

Quick start

You need a domain with an A record pointing to the server and free ports 80/443.

Installer

git clone https://github.com/indiv1d/soliton-panel.git soliton
cd soliton/deploy
./install.sh --domain panel.example.com --email admin@example.com

The installer creates .env and the directories, pulls the latest stable tag and starts compose. To pin a version, add --version vX.Y.Z or set SOLITON_VERSION. Restore:

./install.sh --domain panel.example.com --email admin@example.com \
  --restore /path/to/soliton-YYYYMMDD-HHMMSS-xxxxxxxx.tar.gz

Docker Compose manually

git clone https://github.com/indiv1d/soliton-panel.git
cd soliton-panel/deploy
cp .env.example .env

Minimal .env:

PANEL_DOMAIN=panel.example.com
ACME_EMAIL=admin@example.com
POSTGRES_PASSWORD=<длинный случайный пароль>
PANEL_IMAGE=ghcr.io/indiv1d/soliton-panel:3.0.2
NODE_IMAGE=ghcr.io/indiv1d/soliton-node:3.0.2

For production, pin a tag or a digest, not latest. If the GHCR packages are private, run docker login ghcr.io with a PAT that has the read:packages scope.

docker compose pull
docker compose up -d
docker compose ps
docker compose logs -f panel

The installation directory must contain the Caddyfile from the repository. First-run token:

docker compose exec panel cat /data/setup-token

The file is deleted once the administrator is created. Without a domain and TLS, use docker-compose.local.yml; the panel will be available at http://127.0.0.1:8080:

cd deploy
PANEL_IMAGE=ghcr.io/indiv1d/soliton-panel:3.0.2 \
  docker compose -f docker-compose.local.yml up -d

Already have Caddy or nginx? Then you don't need the bundled Caddy — docs/reverse-proxy.en.md.

First node

  1. In the panel, open Nodes → Add node and enter the public IP.
  2. Copy docker-compose.yml from the creation window: the secret is shown only once.
  3. On the node server, save the compose file as docker-compose.yml and run docker compose up -d.
  4. In the node card, upload a config template (for example VLESS Reality), review it and save. Xray starts once the config is applied.

In detail: docs/node.en.md.

Upgrade

Change PANEL_IMAGE/NODE_IMAGE in .env, then run docker compose pull && docker compose up -d. Upgrade the panel first, then the nodes one by one. Migrations run at startup; a pre-migration dump is created before them. Sequence and rollback — docs/production.en.md.

Documentation

Full index: docs/README.en.md.

Key variables

Variable Default Purpose
DATABASE_URL — PostgreSQL connection string
PANEL_URL http://localhost:8080 external URL used in links and node compose files
COOKIE_SECURE true Secure flag on the session cookie; false only for local debugging
TRUST_PROXY false trust X-Real-IP and X-Forwarded-Host behind your own proxy
BACKUP_DIR /data/backups backup archives
FILES_DIR /data/files uploaded self-steal sites

FILES_DIR must not contain BACKUP_DIR — otherwise archives would end up inside subsequent archives. Full table, paths and agent variables: docs/configuration.en.md.

Development

go test ./...
cd web && npm ci && npm test && npm run typecheck && npm run build
./scripts/playwright.sh

Local setup, migrations and the release process — CONTRIBUTING.en.md. Test layers — docs/testing.en.md.

Security

  • Serve the panel and subscriptions over HTTPS only; never expose PostgreSQL to the outside.
  • The administrator password is stored as Argon2id, node secrets as hashes; 2FA and rate limiting are enabled.
  • Dumps and archives contain Reality keys, UUIDs, the Telegram token and TOTP secrets: treat them as secrets.

Threat model and CSP/HSTS — docs/security.en.md. For vulnerabilities see SECURITY.en.md, not a public issue.

License

MIT, see LICENSE.