You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`-o`|`.`| Output directory for index and data files |
38
-
|`-gateway`|`https://ipfs.io`| IPFS gateway base URL |
39
-
|`-kubo`|`http://localhost:5001`| Kubo API URL for IPNS resolution |
40
-
|`-workers`|`4`| Number of concurrent processing workers |
41
-
|`-model`|`meta-llama-3.1-8b-instruct`| LLM model for keyword extraction |
42
-
|`-fallback-model`|`llama-3.3-70b-instruct`| Model to try if primary returns 429 |
43
-
|`-api-base`|`https://chat-ai.academiccloud.de/v1`| OpenAI-compatible API base URL |
44
-
|`-spacing`|`100ms`| Minimum delay between dispatching CIDs |
45
-
|`-cli`|`false`| Index pending CIDs from archives and exit (no web UI) |
46
-
|`-port`|`8384`| Web UI port (localhost only) |
47
-
|`-public-port`|`8385`| Public API port (archives only, bind all interfaces) |
48
-
|`-refresh`|`10m`| Interval to refresh IPNS for all archives (0 to disable) |
60
+
## Configuration
61
+
62
+
All settings can be provided as CLI flags or environment variables. Flags take precedence.
63
+
64
+
| Flag | Env var | Default | Description |
65
+
|------|---------|---------|-------------|
66
+
|`-o`|`TRACKER_DATA_DIR`|`.`| Output directory for index files |
67
+
|`-gateway`|`TRACKER_GATEWAY`|`https://ipfs.io`| IPFS gateway base URL |
68
+
|`-kubo`|`KUBO_API`|`http://localhost:5001`| Kubo API URL for IPNS resolution |
69
+
|`-workers`|`TRACKER_WORKERS`|`4`| Number of concurrent processing workers |
70
+
|`-model`|`TRACKER_MODEL`|`meta-llama-3.1-8b-instruct`| LLM model for keyword extraction |
71
+
|`-fallback-model`|`TRACKER_FALLBACK_MODEL`|`llama-3.3-70b-instruct`| Model to try if primary returns 429 |
72
+
|`-api-base`|`TRACKER_API_BASE`|`https://chat-ai.academiccloud.de/v1`| OpenAI-compatible API base URL |
73
+
|`-spacing`|`TRACKER_SPACING`|`100ms`| Minimum delay between dispatching CIDs |
74
+
|`-cli`|`TRACKER_CLI`|`false`| Index pending CIDs from archives and exit (no web UI) |
75
+
|`-port`|`TRACKER_PORT`|`8384`| Web UI port (localhost only) |
76
+
|`-public-port`|`TRACKER_PUBLIC_PORT`|`8385`| Public API port (archives only, bind all interfaces) |
77
+
|`-refresh`|`TRACKER_REFRESH`|`10m`| Interval to refresh IPNS for all archives (0 to disable) |
49
78
50
79
With the default `-api-base` (Chat AI / Academic Cloud), rate limits from the API are 1000 req/min, 10000/hour, 50002/day. Current models and exact API IDs: see [docs/chat-ai-api.md](docs/chat-ai-api.md) or `GET https://chat-ai.academiccloud.de/v1/models` (with your API key).
51
80
@@ -74,9 +103,7 @@ Expose only port 8385 (not 8384).
74
103
75
104
| File | Description |
76
105
|------|-------------|
77
-
|`keyword_index.json`| Indexed metadata keyed by CID |
78
-
|`keyword_failures.json`| Permanently failed CIDs with error details |
79
-
|`archives.json`| Archive ID → name, CIDs (source of all known CIDs) |
106
+
|`keyword_index.json`| Indexed metadata keyed by CID (only persisted file) |
0 commit comments