Documentation - Three levels: DOCS/General (overview, configuration), DOCS/Deployment (choose a method, first steps), details per method in Containers/ and System_Services/; new root README and DOCS/README map. - Remove superseded pages (Deployment.md, Deployment_Docker/Native.md, Index.md); split the two scenario guides by section. - Isolate the Timeweb/Hysteria2 records in DEPLOYMENTS/timeweb-hysteria2/ (not linked from DOCS, listed in .graphifyignore). - Add DOCS/code_review/ with a time-stamped analysis of the code base. Gatherer (BUG-02, BUG-03) - Session key (CN, address, connected_since_ts), baseline from the active_sessions snapshot, grace period for sessions missing from the status. - Status file integrity (TITLE/TIME/END) and freshness; a torn read skips the tick. - Cache applied after commit; main loop survives exceptions, backs off, and stops cleanly on SIGTERM/SIGINT; new client rows start with the first frame's totals; five tests. JWT signing key (SEC-01) - No built-in default: Core and Profiler refuse to start with a missing, placeholder or short (< 32) key; shipped config.ini has an empty value. - Same rule in install.sh, update.sh (issues a new key when missing or weak), docker lib/entrypoint; five tests, conftest.py for the test key. Each change has a plan and a summary under DOCS/Changes/. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2.9 KiB
2.9 KiB
Installation
Two ways to install, both with scripts that check the host, generate the secrets, start everything and print the first administrator login. Pick one; the steps after the install are the same: First steps.
Choose a method
| Containers | System services | |
|---|---|---|
| Choose it when | the host has Docker, or you want the simplest operation | no containers wanted; Alpine, Debian or Ubuntu host |
| Needs on the host | Docker Engine with the compose plugin, /dev/net/tun |
root, Internet access, Alpine 3.23 / Debian 12 / Ubuntu 24.04 |
| Install command | deploy/docker/install.sh --variant a|b |
deploy/native/install.sh --prefix DIR |
| Variants | A: everything in one container; B: one container per component | one per OS (the script detects it) |
| Web UI address | http://<host> (port 80, change with --http-port); put TLS in front |
https://<host>:8088 (self-signed certificate, change with --https-port) |
| VPN port | 1194/udp (--vpn-port) |
1194/udp by default, set in the UI |
| Free space | about 2 GB | about 1 GB |
| Update, backup, rollback | update.sh, backup.sh, restore.sh in deploy/docker/ |
update.sh, backup.sh, restore.sh in deploy/native/ |
| Details | Containers | System services |
Not sure? If Docker is already on the host, use Containers, variant A; otherwise System services.
Use one method per host: both use the VPN port 1194/udp by default. For containers, only one variant can run at a time.
The same in both methods
- Run the script as root (or, for containers, as a member of the
dockergroup) from a clone of this repository. - The script prints the URL and the administrator password once; it is stored nowhere else. No default account exists.
- Containers: running
install.shagain is safe, it keeps.envand the data. System services: after a failed install, run it again to resume; a finished installation is changed only withupdate.sh. - Updates always take a verified backup first and roll back automatically if something fails.
- The scripts do not open firewall ports and do not harden SSH. Open the UI port and the VPN port yourself; NAT for the VPN clients: Firewall (containers set their own NAT rules).
After the install
First steps: sign in, secure the account, initialize the PKI, configure and start the VPN server, create the first client profile.
Other pages
| Topic | Page |
|---|---|
| Configuration variables | General: Configuration |
| Nginx and TLS for the UI | Nginx configuration |
| Database schema changes on update | Database migrations |
| Security model | Security architecture |