Expand description
Bootstrap config resolution.
Reads ~/.gobby/bootstrap.yaml to discover how the Gobby daemon is
reachable: its TCP port and bind host. Falls back to loopback defaults
when the file is missing, unreadable, or malformed — clients should
always get something usable rather than error on startup.
The daemon advertises bind_host as a listen address. 0.0.0.0 and
:: are valid listen addresses but invalid dial addresses — a user who
sets bind_host: 0.0.0.0 to expose the daemon on their LAN must still
connect to 127.0.0.1 locally. Normalization lives in daemon_url
(the caller concerned with dialing), not here; this module returns the
raw endpoint as written.
Structs§
- Daemon
Endpoint - A daemon endpoint as advertised by bootstrap.yaml.
- HubDatabase
Bootstrap
Constants§
- DEFAULT_
BIND_ HOST - Default bind host when bootstrap.yaml is missing or malformed.
- DEFAULT_
DAEMON_ PORT - Default daemon port when bootstrap.yaml is missing or malformed.
Functions§
- bootstrap_
path - Resolve the path to
bootstrap.yamlinside the Gobby home directory. - parse_
hub_ database_ bootstrap - postgres_
database_ url_ from_ bootstrap - postgres_
database_ url_ from_ bootstrap_ file - read_
daemon_ endpoint - Read the daemon endpoint from the default bootstrap path.
- read_
daemon_ endpoint_ at - Read the daemon endpoint from a specific bootstrap file path.
- read_
hub_ database_ bootstrap_ file