Hub 2.11.0: ports checked on both servers before an install; frp config on each server's page
- A new install reserves candidate ports, asks the central and church servers which are free (probe-ports), and runs on the first pair free on both (3 rounds, then called off). - Each server's page reads and changes frps's / frpc's config (agent 1.4.0): secrets stay on the server, two-factor, verify, backup, restart, put back if frp doesn't start. - Alerts name the config file the agent uses; a missing config gets its own alert. - Vendors contracts 1.15.0. Migration 20261121110000_server_frp_config. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,34 @@ versions follow [Semantic Versioning](https://semver.org/).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
## [2.11.0] - 2026-11-21
|
||||
|
||||
Needs agent 1.4.0 on the servers (`agent@1.4.0`) for the new parts; vendors contracts 1.15.0.
|
||||
Migration `20261121110000_server_frp_config` (two columns on `Server`).
|
||||
|
||||
### Added
|
||||
|
||||
- **Ports checked on both servers before an install.** A new install reserves a few candidate
|
||||
ports and asks every central server and the church server which are free (`probe-ports`): on
|
||||
the central server, nothing listens on it and frps's allow_ports has it; on the church server,
|
||||
nothing listens on it and frpc's config doesn't use it. The install waits until both have
|
||||
answered, then runs on the first pair free on both (an Accounts-first batch gets two pairs). Busy
|
||||
ports go in the port list as taken. Too few free: another round with new ports, three at most;
|
||||
then, or when a check fails or is missed, the install is called off, its ports freed, and an
|
||||
email says why. The central agent must be online to start an install. With an agent older than
|
||||
1.4.0 on either server, the install runs as before, with a warning.
|
||||
- **frp config on each server's page.** Where frps's (central) or frpc's (church) config is (set a
|
||||
path, or let the agent find it), what's in it, and changing it in the Hub: secrets never leave
|
||||
the server (shown as `***hidden***`, kept on save), the new file is checked with `frp* verify`,
|
||||
a backup is kept, frp is restarted, and the old file goes back if frp doesn't start (an email
|
||||
then). Two-factor, as for uninstalls. New: `POST /api/admin/servers/:id/frp/read` and `/frp/write`.
|
||||
|
||||
### Changed
|
||||
|
||||
- The central server's alerts name the file the agent reads (frps.toml too) instead of
|
||||
"frps.ini", and a server whose agent finds no frp config gets an alert saying to set where it is
|
||||
(instead of "proxy_bind_addr not set", which was only because the file wasn't where it looked).
|
||||
|
||||
## [2.10.0] - 2026-11-20
|
||||
|
||||
### Changed
|
||||
|
||||
Reference in New Issue
Block a user