archivebox.cli.archivebox_server
Module Contents
Functions
Split a |
|
Resolve a CLI/config bind spec to |
|
Print startup-time security / routing warnings for the server command. |
|
Run the ArchiveBox HTTP server |
|
Data
API
- archivebox.cli.archivebox_server._split_bind_spec(spec: str) tuple[str, str][source]
Split a
host:port/host/portspec into(host, port).The empty strings stand in for “not provided”; the caller fills in defaults. Bracketed IPv6 literals like
[::1]:8000are handled.
- archivebox.cli.archivebox_server._parse_and_validate_bind_spec(spec: str) tuple[str, str][source]
Resolve a CLI/config bind spec to
(host, port)or hard-error.Accepts only IP literals (v4 or v6) or the special string
localhost(normalized to127.0.0.1). Bare hostnames are rejected because the bind address feeds Daphne, which has to listen on a numeric address; public hostnames belong inBASE_URLinstead. Empty values fall back to127.0.0.1/8000.
- archivebox.cli.archivebox_server._print_server_startup_warnings(config, host: str, port: str) None[source]
Print startup-time security / routing warnings for the server command.
Runs only from
archivebox serverso other entry points (manage shell, plugin lookups, etc.) don’t repeat this banner on every config load.