You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use dynamic ports for Steve to avoid conflicts with other software
Steve's hardcoded ports 9443 and 9080 conflict with other software
(e.g. Logitech GHub). Replace them with OS-assigned ephemeral ports.
Since no external tool connects to Steve directly, fixed port numbers
serve no purpose.
Ports are resolved before each Steve start and passed to Steve itself
(--https-listen-port and --http-listen-port), the certificate-error
handler, and DashboardServer.
DashboardServer recreates its proxy middleware on each port change so
that http-proxy-middleware's options.target always holds a valid URL.
The onProxyReqWs callback reads options.target to strip prepended
path prefixes from websocket requests; without a proper target, it
destroys every websocket connection. Express routes use wrapper
functions that delegate to the current proxy instances, so replacing
them takes effect without re-registering routes.
DashboardServer also exposes /api/steve-port so the dashboard plugin
can discover the port dynamically.
Fixes#1890
Signed-off-by: Jan Dubois <jan.dubois@suse.com>
0 commit comments