Skip to content

feat(settings): listen ports in /api/settings - #450

Merged
butschster merged 3 commits into
masterfrom
feat/settings-ports
Nov 17, 2026
Merged

butschster merged 3 commits into
masterfrom
feat/settings-ports

Conversation

@butschster

Copy link
Copy Markdown
Member

GET /api/settings gets a ports field: the listen port of each listener that is on. The in-app setup help uses it to show real values instead of guessing from the page URL (behind a reverse proxy the page port is not the ingest port).

"ports": {"http": 8000, "smtp": 1025, "monolog": 9913, "var_dumper": 9912, "proxy": 8080}
  • Keys: http, smtp, monolog, var_dumper, proxy, xdebug, mcp.
  • smtp / monolog / var_dumper only when their module is on; xdebug only when the Xdebug proxy is enabled; mcp only with transport: http.
  • An address without a fixed port (:0, unparsable) is left out; the UI falls back to its defaults.

Tests: TestConfig_ListenPorts (table: defaults, xdebug/mcp on, mcp over socket, modules off, no fixed port), TestAPI_Settings checks the field.

The setup help fills real ports instead of guessing from the page URL.
Only listeners that are on are listed; an address without a fixed port is left out.
@butschster
butschster merged commit 42e6d63 into master Nov 17, 2026
1 check passed
@butschster
butschster deleted the feat/settings-ports branch November 17, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant