Files
memory-gateway/.env.example

28 lines
1.4 KiB
Plaintext

# Upstream memory service used by the gateway client.
MEMORY_GATEWAY_BACKEND_BASE_URL=http://127.0.0.1:1995
# Gateway-owned SQLite database. This does not point at upstream internal storage.
MEMORY_GATEWAY_DB_PATH=./data/memory_gateway.sqlite3
# Raw uploaded files are stored here for gateway-managed ingestion.
MEMORY_GATEWAY_STORAGE_DIR=./data/storage
# Number of resource session IDs sent per upstream search request.
MEMORY_GATEWAY_RESOURCE_SEARCH_BATCH_SIZE=50
# Max upload size in bytes. Default here is 25 MiB.
MEMORY_GATEWAY_MAX_UPLOAD_BYTES=26214400
# Comma-separated MIME allowlist. Prefix wildcards such as image/* are supported.
MEMORY_GATEWAY_ALLOWED_MIME_TYPES=image/*,audio/*,application/pdf,text/html,application/xhtml+xml,text/plain,text/markdown,text/csv,application/json,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-powerpoint,application/vnd.openxmlformats-officedocument.presentationml.presentation
# Upstream add/flush retry policy during resource ingestion.
MEMORY_GATEWAY_BACKEND_INGEST_ATTEMPTS=3
MEMORY_GATEWAY_BACKEND_RETRY_DELAY_SECONDS=0.25
MEMORY_GATEWAY_BACKEND_TIMEOUT_SECONDS=120
# API server settings used by python main.py.
MEMORY_GATEWAY_HOST=0.0.0.0
MEMORY_GATEWAY_PORT=8010
MEMORY_GATEWAY_RELOAD=false