Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
rospanel
command
Command rospanel is the RosPanel VPN panel: boot the store, obtain a Let's Encrypt cert (domain or IP), generate the Xray config, and serve the admin API + the masquerade/subscription surface.
|
Command rospanel is the RosPanel VPN panel: boot the store, obtain a Let's Encrypt cert (domain or IP), generate the Xray config, and serve the admin API + the masquerade/subscription surface. |
|
internal
|
|
|
auth
Package auth provides password hashing (Argon2id), random secret generation, and constant-time helpers used by the panel's authentication and masquerade.
|
Package auth provides password hashing (Argon2id), random secret generation, and constant-time helpers used by the panel's authentication and masquerade. |
|
backup
Package backup creates and restores tar.gz snapshots of the data directory (SQLite DB, certs, generated config, ACME account).
|
Package backup creates and restores tar.gz snapshots of the data directory (SQLite DB, certs, generated config, ACME account). |
|
core
Package core ties the store and the Xray supervisor together: mutations go through it so the proxy config is reconciled from the DB after every change.
|
Package core ties the store and the Xray supervisor together: mutations go through it so the proxy config is reconciled from the DB after every change. |
|
cron
Package cron is a minimal standard 5-field cron parser/matcher (minute, hour, day-of-month, month, day-of-week).
|
Package cron is a minimal standard 5-field cron parser/matcher (minute, hour, day-of-month, month, day-of-week). |
|
datasec
Package datasec provides at-rest encryption for secrets stored in SQLite.
|
Package datasec provides at-rest encryption for secrets stored in SQLite. |
|
decoy
Package decoy serves an innocent-looking website ("заглушка") for every request that doesn't carry the secret panel path.
|
Package decoy serves an innocent-looking website ("заглушка") for every request that doesn't carry the secret panel path. |
|
geo
Package geo manages the geoip.dat / geosite.dat databases Xray needs to resolve geosite:/geoip: routing rules.
|
Package geo manages the geoip.dat / geosite.dat databases Xray needs to resolve geosite:/geoip: routing rules. |
|
hop
Package hop manages Hysteria2 UDP port-hopping via host NAT.
|
Package hop manages Hysteria2 UDP port-hopping via host NAT. |
|
link
Package link builds client share-links from a user + settings.
|
Package link builds client share-links from a user + settings. |
|
logbuf
Package logbuf captures the panel's own log output into an in-memory ring buffer and fans new lines out to live subscribers (the dashboard log viewer).
|
Package logbuf captures the panel's own log output into an in-memory ring buffer and fans new lines out to live subscribers (the dashboard log viewer). |
|
model
Package model holds the core domain types shared across the panel.
|
Package model holds the core domain types shared across the panel. |
|
netguard
Package netguard provides SSRF-safe outbound HTTP helpers.
|
Package netguard provides SSRF-safe outbound HTTP helpers. |
|
netinfo
Package netinfo resolves the server's own public IP, used for unattended first-boot host configuration and the post-factory-reset redirect.
|
Package netinfo resolves the server's own public IP, used for unattended first-boot host configuration and the post-factory-reset redirect. |
|
opera
Package opera manages the opera-proxy helper binary: a standalone Opera VPN client that exposes a local HTTP proxy.
|
Package opera manages the opera-proxy helper binary: a standalone Opera VPN client that exposes a local HTTP proxy. |
|
proxypool
Package proxypool fetches and parses outbound proxy lists for the proxy-pool egress: free public lists or a manually-entered set, one "scheme://[user:pass@]host:port" per line.
|
Package proxypool fetches and parses outbound proxy lists for the proxy-pool egress: free public lists or a manually-entered set, one "scheme://[user:pass@]host:port" per line. |
|
proxyproto
Package proxyproto provides a net.Listener that reads an optional PROXY-protocol v1 header (the text format Xray emits with xver=1) from each accepted connection and exposes the real client address via RemoteAddr.
|
Package proxyproto provides a net.Listener that reads an optional PROXY-protocol v1 header (the text format Xray emits with xver=1) from each accepted connection and exposes the real client address via RemoteAddr. |
|
server
Package server implements the public-facing masquerade router and the hidden admin panel mounted under the secret path.
|
Package server implements the public-facing masquerade router and the hidden admin panel mounted under the secret path. |
|
store
Package store is the SQLite-backed persistence layer.
|
Package store is the SQLite-backed persistence layer. |
|
sub
Package sub builds the per-user subscription: the machine payload consumed by VPN clients and the human-facing page (QR + one-tap import buttons).
|
Package sub builds the per-user subscription: the machine payload consumed by VPN clients and the human-facing page (QR + one-tap import buttons). |
|
sysstat
Package sysstat samples host metrics (CPU, memory, swap, disk, network) from /proc on Linux.
|
Package sysstat samples host metrics (CPU, memory, swap, disk, network) from /proc on Linux. |
|
telegram
Package telegram is a self-contained Telegram Bot API client plus the panel's admin bot: it long-polls for commands (view/add/remove users) and pushes scheduled backups to the linked admin chat.
|
Package telegram is a self-contained Telegram Bot API client plus the panel's admin bot: it long-polls for commands (view/add/remove users) and pushes scheduled backups to the linked admin chat. |
|
tlsmgr
Package tlsmgr obtains the TLS certificate via ACME (Let's Encrypt) for a domain or an IP address.
|
Package tlsmgr obtains the TLS certificate via ACME (Let's Encrypt) for a domain or an IP address. |
|
tuning
Package tuning applies host-level network optimizations recommended for an Xray server — currently enabling the TCP BBR congestion-control algorithm, which noticeably improves throughput on lossy/long-haul links.
|
Package tuning applies host-level network optimizations recommended for an Xray server — currently enabling the TCP BBR congestion-control algorithm, which noticeably improves throughput on lossy/long-haul links. |
|
updater
Package updater self-updates the panel binary from its GitHub Releases: it finds the latest release, downloads the matching asset, verifies its SHA-256 against the release's SHA256SUMS BEFORE the binary is ever executed or swapped in, then atomically replaces the running executable (keeping a .bak for rollback).
|
Package updater self-updates the panel binary from its GitHub Releases: it finds the latest release, downloads the matching asset, verifies its SHA-256 against the release's SHA256SUMS BEFORE the binary is ever executed or swapped in, then atomically replaces the running executable (keeping a .bak for rollback). |
|
version
Package version exposes the panel's release version.
|
Package version exposes the panel's release version. |
|
warp
Package warp registers a free Cloudflare WARP account and returns the WireGuard parameters Xray needs to use it as an outbound.
|
Package warp registers a free Cloudflare WARP account and returns the WireGuard parameters Xray needs to use it as an outbound. |
|
xray
Package xray models the Xray-core config as typed Go structs (so field-name mistakes are compile errors) and supervises the Xray child process.
|
Package xray models the Xray-core config as typed Go structs (so field-name mistakes are compile errors) and supervises the Xray child process. |
|
Package webui embeds the built React SPA (web/dist) into the Go binary.
|
Package webui embeds the built React SPA (web/dist) into the Go binary. |
Click to show internal directories.
Click to hide internal directories.



