Liking cljdoc? Tell your friends :D

wagoe.devtools.shell.dashboard.server

Integrant component for the dev dashboard HTTP server on port 9999.

Integrant component for the dev dashboard HTTP server on port 9999.
raw docstring

clear-config-overrides!clj

(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.
sourceraw docstring

config-overrides*clj

source

local-refusalclj

(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.
sourceraw docstring

port-planclj

(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 65535
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close