mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 21:41:09 +02:00
Central search microservice for all ManaCore apps featuring: - NestJS API on port 3021 - SearXNG meta-search engine integration (40+ search engines) - Redis caching layer for search results and extracted content - Content extraction with markdown conversion - Prometheus metrics for monitoring API Endpoints: - POST /api/v1/search - Web search with categories/engines - POST /api/v1/extract - Content extraction from URLs - POST /api/v1/extract/bulk - Bulk extraction - GET /health - Health check - GET /metrics - Prometheus metrics Search categories: general, news, science, it, images, videos Supported engines: Google, Bing, DuckDuckGo, Wikipedia, arXiv, GitHub, StackOverflow, and many more. https://claude.ai/code/session_01Rk3YVJCU3nM8uvVPghRz6r
28 lines
621 B
Text
28 lines
621 B
Text
# Mana Search Service Environment Variables
|
|
|
|
# Server
|
|
PORT=3021
|
|
NODE_ENV=development
|
|
|
|
# SearXNG
|
|
SEARXNG_URL=http://localhost:8080
|
|
SEARXNG_TIMEOUT=15000
|
|
SEARXNG_DEFAULT_LANGUAGE=de-DE
|
|
SEARXNG_SECRET=change-me-in-production
|
|
|
|
# Redis
|
|
REDIS_HOST=localhost
|
|
REDIS_PORT=6380
|
|
REDIS_PASSWORD=
|
|
|
|
# Cache TTL (seconds)
|
|
CACHE_SEARCH_TTL=3600
|
|
CACHE_EXTRACT_TTL=86400
|
|
|
|
# Content Extraction
|
|
EXTRACT_TIMEOUT=10000
|
|
EXTRACT_MAX_LENGTH=50000
|
|
EXTRACT_USER_AGENT=Mozilla/5.0 (compatible; ManaSearchBot/1.0; +https://manacore.app)
|
|
|
|
# CORS (comma-separated origins)
|
|
CORS_ORIGINS=http://localhost:3000,http://localhost:5173,http://localhost:8081
|