- Go 37.3%
- TypeScript 33.7%
- JavaScript 23.5%
- CSS 3.4%
- HTML 1.1%
- Other 1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .github | ||
| cmd | ||
| deploy | ||
| docs | ||
| internal | ||
| scripts | ||
| web | ||
| .dockerignore | ||
| .gitignore | ||
| CHANGELOG.en.md | ||
| CHANGELOG.md | ||
| CONTRIBUTING.en.md | ||
| CONTRIBUTING.md | ||
| Dockerfile.node | ||
| Dockerfile.panel | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| Makefile | ||
| PERF.en.md | ||
| PERF.md | ||
| README.en.md | ||
| README.md | ||
| SECURITY.en.md | ||
| SECURITY.md | ||
| tygo.yaml | ||
Русский · English
Soliton
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 -testvalidation, 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
- In the panel, open Nodes → Add node and enter the public IP.
- Copy
docker-compose.ymlfrom the creation window: the secret is shown only once. - On the node server, save the compose file as
docker-compose.ymland rundocker compose up -d. - 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.
- Architecture and flows
- Node, config, WARP, self-steal, HWID
- Security, 2FA, Telegram, audit
- All environment variables
- HTTP API, CLI, tests
- Reverse proxy, operations, monitoring
- Compatibility, releases and images
- Development guidelines
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.