Newer
Older
gnexus-book / server / .env.example
@Eugene Sukhodolskiy Eugene Sukhodolskiy 7 hours ago 2 KB feat(scripts): assign owner during cutover
# 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
# Browser-based MCP clients also need their public HTTPS origin.
# GNEXUS_BOOK_MCP_ALLOWED_ORIGINS=http://127.0.0.1:*,http://localhost:*,http://[::1]:*,https://book.gnexus.space
# 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

# Owner JSON used by cutover-db.sh to assign imported data to the first admin.
# GNEXUS_BOOK_OWNER_JSON=/path/to/owner.json

# Operations: off-host backups, health probes and Synapse alerts.
# GNEXUS_BOOK_BACKUP_DIR=/mnt/backups/gnexus-book/db
# GNEXUS_BOOK_BACKUP_KEEP=14
# GNEXUS_BOOK_HEALTH_URL=http://127.0.0.1:8000/health
# SYNAPSE_URL=https://synapse.gnexus.space
# SYNAPSE_API_KEY=
# SYNAPSE_DEFAULT_SOURCE=gnexus-book

# 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