Server, imports and the CLI¶
TL;DR
servebinds127.0.0.1:3000; the Docker image binds0.0.0.0.- Import limits: 2 MiB per file, 256 MiB per import, 32 MiB of images per version.
- The command-line client reads
EXACTDOCS_URL,EXACTDOCS_TOKENandEXACTDOCS_CLIENT_CONFIG.
Server and imports¶
| Variable | Default | What it does |
|---|---|---|
EXACTDOCS_HOST, EXACTDOCS_PORT |
127.0.0.1, 3000 |
The address serve binds; the Docker image binds 0.0.0.0. --host and --port override them |
EXACTDOCS_MAX_ARTICLE_BYTES |
2097152 (2 MiB) |
An import skips a file above this size, unread, and reports it as too_large |
EXACTDOCS_MAX_IMPORT_BYTES |
268435456 (256 MiB) |
An import whose selected text adds up to more fails with import_too_large instead of exhausting memory |
EXACTDOCS_MAX_IMAGE_BYTES |
2097152 (2 MiB) |
An image an article references above this size is skipped, unread |
EXACTDOCS_MAX_IMAGES_BYTES |
33554432 (32 MiB) |
A version keeps images until they add up to this many bytes; later ones are skipped and listed as problems. Images are held in memory and in the database, about 8 times over at the peak |
EXACTDOCS_IMPORT_BATCH_FILES |
100 |
Files an import parses and chunks per durable step. An import interrupted by a crash, kill -9 or a deploy resumes on the next start after its last completed step, so it loses at most this many files of work1 |
EXACTDOCS_JOB_POLL_SECONDS |
1 |
How often the job worker looks for a queued job to start (at most 60). An idle server polls no more often than this; lower it only if a second of delay before an import starts matters |
EXACTDOCS_AUTO_SYNC_SCHEDULE |
0 * * * * * |
When the scheduled check ticks (a DBOS cron expression, seconds first). Each tick checks the libraries whose own interval is up ( PUT /api/v1/libraries/{owner}/{repo}/auto-sync): new matching tags are imported, old automatic versions pruned and branches re-synced.Paused while no library has a schedule. An invalid expression stops startup |
EXACTDOCS_QUERY_DOCS_TOKEN_BUDGET |
10000 |
Size of one whole query-docs answer in tokens, counted as characters / 4; at least 500.See MCP |
Command-line client¶
These are read by the CLI commands that talk to a server (login, add, sync and the rest), not
by the server.
| Variable | What it does |
|---|---|
EXACTDOCS_URL |
The server, when --url is not given |
EXACTDOCS_TOKEN |
The API token, when --token is not given; also what exactdocs config snippets refer to |
EXACTDOCS_CLIENT_CONFIG |
Another file instead of config.json in your user config directory |
The client follows the outbound connections settings too (the standard
variables and their EXACTDOCS_ overrides, from its own environment): a remote server is reached
through the proxy unless NO_PROXY lists it, a server on localhost or a loopback address never
is, and the CA bundle is trusted.
-
DBOS keeps the steps in
<data dir>/jobs.sqlite, or in thedbosschema on PostgreSQL. They take about three times the version's text while the import runs and are compacted once no job runs. ↩