Integrant component for the dev dashboard HTTP server on port 9999.
Integrant component for the dev dashboard HTTP server on port 9999.
(clear-config-overrides!)Reset dashboard config overrides so the next restart loads only on-disk config.
Reset dashboard config overrides so the next restart loads only on-disk config.
(local-refusal req token)Why req may not reach the dashboard, or nil (BOU-1012). It runs SQL and
rewrites the config, so a page the developer visits must not: a request that
writes comes from the dashboard's own origin. Bound to this machine only,
every request names it in Host, which stops DNS rebinding. Bound beyond it,
where any client sets its own Host, every request carries token, the one
in the URL the log printed.
Why `req` may not reach the dashboard, or nil (BOU-1012). It runs SQL and rewrites the config, so a page the developer visits must not: a request that writes comes from the dashboard's own origin. Bound to this machine only, every request names it in Host, which stops DNS rebinding. Bound beyond it, where any client sets its own Host, every request carries `token`, the one in the URL the log printed.
(port-plan port)Which ports to try for port, in order, and what running out of them means.
Pure, and separate from the binding, because every defect in this area has been a policy decision tangled up with a socket call (BOU-377):
{:error :out-of-range} not a TCP port {:ports [p] :on-exhausted :raise} below 1024 — a bind failure there may be EACCES, which Java does not distinguish from EADDRINUSE, so it is tried once and the failure told {:ports [p … p+10] :on-exhausted :give-up} otherwise, capped at 65535
Which ports to try for `port`, in order, and what running out of them means.
Pure, and separate from the binding, because every defect in this area has
been a policy decision tangled up with a socket call (BOU-377):
{:error :out-of-range} not a TCP port
{:ports [p] :on-exhausted :raise} below 1024 — a bind failure there
may be EACCES, which Java does not
distinguish from EADDRINUSE, so it
is tried once and the failure told
{:ports [p … p+10] :on-exhausted :give-up} otherwise, capped at 65535cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |