Watch 1
Fork 0
You've already forked soliton-panel

Latest commit message

Aleksandr Deriugin
Release 4.0.0 (#2)
All checks were successful
ci / security (push) Successful in 7s
ci / e2e (push) Successful in 21s
ci / go (push) Successful in 1m41s
ci / go-static (push) Successful in 40s
ci / web (push) Successful in 1m43s
ci / playwright (push) Successful in 3m44s
docker / build (node) (push) Successful in 2m1s
docker / build (panel) (push) Successful in 2m47s
ci / docker-build (push) Successful in 2m40s
docker / release (push) Successful in 5s
ac9270c 2026-11-28 02:42:20 +03:00 432 commits
2026-11-26 21:31:02 +03:00
2026-11-27 23:29:35 +00:00
2026-11-27 23:29:35 +00:00
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, six 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

No repository checkout is needed: the installer is self-contained.

curl -fsSL https://gitlab.indi.one/indi/soliton-panel/raw/branch/main/deploy/install.sh -o /tmp/soliton-install.sh
sudo bash /tmp/soliton-install.sh --domain panel.example.com --email admin@example.com

It writes docker-compose.yml, Caddyfile and init-data.sh itself, creates /opt/soliton, .env and the directories, resolves the latest stable tag and starts compose. No token is needed: the release API and the images are public. To pin a version, pass --version X.Y.Z and fetch the script from the same tag: .../raw/tag/vX.Y.Z/deploy/install.sh. Restore:

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

An existing installation can move to the two PostgreSQL roles and enable backup encryption with sudo bash /tmp/soliton-install.sh --domain ... --email ... --upgrade-db-roles --encrypt-backups.

Docker Compose manually

git clone https://gitlab.indi.one/indi/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=gitlab.indi.one/indi/soliton-panel:4.0.0
NODE_IMAGE=gitlab.indi.one/indi/soliton-node:4.0.0

For production, pin a tag or a digest, not latest. Forgejo images are public to pull; if the instance or package owner is restricted, run docker login gitlab.indi.one with a read:package token. Pushing needs a token with write:package.

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=gitlab.indi.one/indi/soliton-panel:4.0.0 \
  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.

Synology NAS? The built-in DSM reverse proxy has its own compose file and guide — docs/synology.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 accept IP headers only from trusted proxies
TRUSTED_PROXY_CIDRS loopback + private networks comma-separated trusted proxy CIDRs
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.