boxlite-cli 0.10.4

Command-line interface for BoxLite container runtime
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Shared defaults for `boxlite serve` (the local REST server) and any
//! client command that targets it (`boxlite auth login`, `auth status`,
//! `auth logout`, etc.). Keeping the port, host, and client URL in one
//! place prevents drift between the bind address and the URL clients use.

/// Port `boxlite serve` binds when `--port` is not given.
pub const LOCAL_SERVE_PORT: u16 = 8100;

/// Address `boxlite serve` binds when `--host` is not given.
pub const LOCAL_SERVE_HOST: &str = "0.0.0.0";

/// URL clients use to reach `boxlite serve` on the same host. Must stay
/// in sync with `LOCAL_SERVE_PORT`.
pub const LOCAL_SERVE_URL: &str = "http://localhost:8100";