Every setting is an environment variable and also a command-line flag (--database-url, --listen, and so on).
| Variable | Default | Meaning |
|---|---|---|
DATABASE_URL | required | Postgres connection string. |
LISTEN | 127.0.0.1:4000 | Address and port to listen on. |
POOL_SIZE | 16 | Database connections in the pool. All are opened and warmed at startup. |
IMPORTANCE_WEIGHT | 10 | Weight of importance (0–1) against the BM25 text score. |
RANKED_TIMEOUT_MS | 250 | Budget for an importance-ranked query. |
FOCUS_TIMEOUT_MS | 1000 | Budget shared by all focus-box queries of one request. |
FALLBACK_TIMEOUT_MS | 2000 | Budget for the text-only fallback query. |
RUST_LOG | geolith_search=info,tower_http=info | Log filter. |
Info
Postgres must allow at least POOL_SIZE connections for the server, plus any you need for tests and maintenance.