Record the deprecation of the observability endpoints on webServer in doc/deprecations.md, so the removal target is in one place next to the other active deprecations. The webServer /healthz, the frps webServer /metrics with its top-level enablePrometheus switch, and the pprof handlers with webServer.pprofEnable are deprecated since v0.72.0, when metricsServer was added. They are replaced by metricsServer, whose /healthz, /metrics and pprofEnable are independent of the dashboard listener.
1.2 KiB
Features
-
frpc can verify server certificates using system CAs, optionally combined with CAs from
trustedCaFile. -
frpc reloadnow refreshes certificate files for unchangedhttps2httpandhttps2httpsproxies without interrupting existing connections. Failed refreshes keep the previous certificate and report the error in proxy status and logs while reload still succeeds. -
Added
metricsServerto both frps and frpc, a separate listener for health checks, metrics and optional profiling that does not expose the dashboard or the admin API. It is disabled unlessmetricsServer.portis set, defaults to127.0.0.1, and has its own credentials and TLS. Setting the port serves/metricson both: frps exposes runtime and business metrics, soenablePrometheusis not needed there, and frpc exposes Go runtime metrics only, without linking an extra metrics library.The
/healthz,/metricsand pprof endpoints onwebServer,webServer.pprofEnableandenablePrometheusstill work but are deprecated: configuremetricsServerinstead. They will continue to work until v0.80.0 is released, and may be removed in v0.80.0 or later.
Fixes
- Fixed proxy and visitor configuration changes being lost when reloading frpc during reconnection.