Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

docs(cli): --help names the CORS config and the real native-port default (#1286)

Vincenzo Lombardo235f8a763baf
diff --git a/engine/crates/xerj-server/src/main.rs b/engine/crates/xerj-server/src/main.rs
index 09f6149ee..5c8d3167b 100644
--- a/engine/crates/xerj-server/src/main.rs
+++ b/engine/crates/xerj-server/src/main.rs
@@ -239,7 +239,11 @@ fn help_text(feedback: bool) -> String {
PR) — see xerj feedback --help\n\
\n\
OPTIONS (for `xerj [OPTIONS]`, the bare server start):\n\
- --config, -c <PATH> Path to TOML config file\n\
+ --config, -c <PATH> Path to TOML config file. CORS is off by default (no\n\
+ Access-Control-* headers); a browser app calling the node\n\
+ directly needs [cors] allowed_origins =\n\
+ [\"http://localhost:8080\"] there (allow_any_origin = true\n\
+ is for local development only)\n\
--data-dir, -d <PATH> Override data directory\n\
--bind, -b <ADDR> Interface to bind every listener to. Default 127.0.0.1 —\n\
loopback only, reachable from this machine and nowhere\n\
@@ -302,9 +306,11 @@ fn help_text(feedback: bool) -> String {
local file only, no download path. Env:\n\
XERJ_DECIDE_MODEL_DIR\n\
--port <PORT> Port for the Elasticsearch-compatible API (default 9200).\n\
- Also claims PORT+1 for the native REST API and PORT+2\n\
- for gRPC, so a second instance needs only this one flag:\n\
- xerj --insecure --port 9300 -d ./other-data\n\
+ When given, also claims PORT+1 for the native REST API and\n\
+ PORT+2 for gRPC, so a second instance needs only this one\n\
+ flag: xerj --insecure --port 9300 -d ./other-data\n\
+ Without it the native REST API listens on 8080 and gRPC on\n\
+ 8081 ([server] rest_port / grpc_port in the TOML config).\n\
--disable-feedback Do not print the feedback invitation above. Honoured in any\n\
position, including after --help. Env:\n\
XERJ_DISABLE_FEEDBACK=true\n\