This commit is contained in:
Mateusz Gruszczyński committed 2026-11-15 13:45:15 +01:00
1 parent df0e39b899
commit 21aef61dd5
35 files changed
+1360 -100

No files matched your search

+12
View File
@@ -2,6 +2,18 @@
Release history focused on **features, settings, default behavior, compatibility and fixes**. Changes to internal code structure and preliminary performance experiments are intentionally omitted. Historical descriptions reflect their respective releases; consult the current documentation for the settings available in the latest release.
## 0.38.0 — headless mode and catch-all host
- **Headless mode:** `rust-proxy --headless --config /etc/rustproxy/config.json serve …` (or `RUST_PROXY_HEADLESS=1` with `RUST_PROXY_CONFIG` in `/etc/rustproxy/environment`, which the packaged unit already reads) runs RustProxy as a plain reverse proxy and load balancer configured only from a JSON file. No administration listener, API or administrator account; RustProxy never writes the file. Everything that serves traffic works as in panel mode. See [Headless mode](docs/HEADLESS.md).
- **Short configuration files:** in headless mode a file without `listeners` gets the `--proxy-listen` / `--tls-listen` addresses as listeners `http` / `https`, a vhost without `frontend.listener_ids` is bound to every enabled listener, and GeoIP downloads stay off unless `geoip_updates` is set. A working load balancer is a single vhost with its backends.
- **Reload without an account:** `systemctl reload rustproxy`, `rust-proxy --headless reload` or `kill -HUP` apply the edited file without dropping connections or the cache. An invalid file is rejected and logged and the running configuration stays active. The process id is kept in `<data-dir>/rustproxy.pid`.
- **Full configuration format:** every section of the panel configuration works in headless mode (cache and cache rules, COLD tier, compression, ACLs, login providers, Web Server, streams, Docker agents, logging, Prometheus); a panel export can be used unchanged. Examples: `examples/headless-minimal.json` and `examples/headless-production.json` (ten backends, HTTPS, two-tier cache with rules, rate limit, protected `/admin`, logs and metrics), both documented step by step.
- **Offline check:** `rust-proxy --headless config validate FILE` applies the same defaults and compiles the file without touching the data directory.
- **Health endpoint:** `--health-listen ADDR` (`RUST_PROXY_HEALTH_LISTEN`, both modes) serves `GET /healthz`: `200` while every vhost with backends has a healthy backend, `503` otherwise, with per-vhost counts, the configuration revision and the result of the last reload.
- **Catch-all host:** a vhost host of just `*` answers every hostname and IP address on its listeners that no exact or wildcard host claims, so a server without a domain can be published (HTTPS uses the default certificate). Works in panel mode too.
- **Not available in headless mode:** the panel and live logs, the configuration API and cache invalidation API, ACME issuance and auto-renewal (certificates with `issuer.auto_renew` are refused; renew externally and reference the files), the software update check and the ACME runtime preparation.
- **Compatibility:** without `--headless` nothing changes. No configuration migration.
## 0.37.3 — lower memory and CPU use with Docker agents
- **Docker discovery no longer rebuilds the configuration on every poll:** each agent poll (default every 5 s) used to recompile the whole runtime configuration — re-reading every certificate file, building new TLS server configurations for every vhost, re-resolving dynamic ACL names and allocating and discarding the full compiled configuration — even when nothing had changed. RustProxy now compares the generated configuration (and the size, modification time and inode of the configured certificate files) with the last applied one and only recompiles when something actually changed: a container address, port, label publication, assignment, configuration save, certificate reload or a certificate file replaced on disk. On the test machine (51 vhosts, two agents, 5 s poll) idle CPU use dropped by about 45% and process memory under 500 keep-alive TLS connections by about 12%; the effect grows with the number of vhosts, certificates and backends.