-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbitdex.default.toml
More file actions
47 lines (39 loc) · 1.78 KB
/
bitdex.default.toml
File metadata and controls
47 lines (39 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# BitDex Server Configuration
#
# This file is the default configuration shipped with BitDex.
# On first run (with no CLI arguments), a copy is written as bitdex.toml
# next to the executable so you can customize it.
#
# All relative paths are resolved from the directory containing this file
# (i.e., next to the executable).
#
# CLI flags always override these values:
# --port <N> Override port
# --data-dir <PATH> Override data_dir
# --rebuild Force rebuild on startup
# --config <PATH> Use a different config file
# --default-format <FMT> Override default_query_format
# HTTP port to listen on
port = 3000
# Directory for index data storage
data_dir = "data"
# Set to true to rebuild all bitmap indexes from docstore on startup
# rebuild = false
# Default query format: "bitdex", "compact", or "meilisearch"
# Callers can override per-request with ?format= query parameter
# default_query_format = "bitdex"
# Log level: "error", "warn", "info", "debug", "trace"
# "info" logs all incoming queries with timing and result counts
# RUST_LOG env var overrides this setting
# log_level = "warn"
# Write per-query trace data to {data_dir}/traces.jsonl
# Records clause-level timing, cardinality cascade, cache hits, and sort metrics
# Useful for development and debugging; disable in production to avoid disk I/O
# enable_traces = false
# Admin token for gating mutating endpoints (config patch, cache clear, snapshot, etc.)
# If not set, admin endpoints return 403 Forbidden (fail-safe).
# BITDEX_ADMIN_TOKEN env var overrides this value (recommended for deployments).
# admin_token = "your-secret-token-here"
# Number of rayon threads for parallel dump processing.
# 0 = use rayon default (usually num_cpus). Set higher for dump-heavy workloads.
# rayon_threads = 0