Newer
Older
gnexus-book / server / .env.example
# Storage backend: file (default) or db.
# The systemd units load this file via EnvironmentFile; switch to db after cutover.
GNEXUS_BOOK_STORAGE_BACKEND=file
# PostgreSQL URL used when the backend is db
GNEXUS_BOOK_DATABASE_URL=postgresql+psycopg://gmikcon@127.0.0.1:5433/gnexus_book
# Repository root for the file backend and the importer
# GNEXUS_BOOK_REPO_ROOT=/path/to/gnexus-book
# MCP transport for development: stdio, sse, or streamable-http
# GNEXUS_BOOK_MCP_TRANSPORT=stdio
# GNEXUS_BOOK_MCP_HOST=0.0.0.0
# GNEXUS_BOOK_MCP_PORT=8001
# Break-glass only; never a fallback for personal keys
# GNEXUS_BOOK_MCP_TOKEN=
# GNEXUS_BOOK_MCP_KEY_RATE_LIMIT=30
# GNEXUS_BOOK_MCP_REQUEST_RATE_LIMIT=300
# Comma-separated Host values accepted by FastMCP. Add the public hostname
# when the MCP endpoint is served behind nginx (e.g. book.gnexus.space).
# GNEXUS_BOOK_MCP_ALLOWED_HOSTS=127.0.0.1:*,localhost:*,[::1]:*,book.gnexus.space
# GNEXUS_BOOK_MCP_ALLOWED_ORIGINS=http://127.0.0.1:*,http://localhost:*,http://[::1]:*
# Internal key-provisioning API (not exposed through nginx)
# GNEXUS_BOOK_INTERNAL_KEY_SECRET=
# GNEXUS_BOOK_INTERNAL_ALLOWLIST=127.0.0.1,::1
# GNEXUS_BOOK_INTERNAL_RATE_LIMIT=60

# gnexus-auth SSO. Leave the client id empty to run with authentication disabled.
# GNEXUS_BOOK_AUTH_CLIENT_ID=
# GNEXUS_BOOK_AUTH_CLIENT_SECRET=
# GNEXUS_BOOK_AUTH_BASE_URL=https://auth.gnexus.space
# GNEXUS_BOOK_AUTH_REDIRECT_URI=https://book.gnexus.space/auth/callback
# GNEXUS_BOOK_AUTH_WEBHOOK_SECRET=
# GNEXUS_BOOK_AUTH_SESSION_COOKIE=gnb_session
# GNEXUS_BOOK_AUTH_STATE_COOKIE=gnb_oauth_state
# GNEXUS_BOOK_AUTH_COOKIE_SECURE=true
# GNEXUS_BOOK_AUTH_SESSION_TTL_SECONDS=604800
# GNEXUS_BOOK_AUTH_SCOPES=openid email profile roles permissions