# ─────────────────────────────────────────────────────────────
# PeerCortex Configuration
# Copy this file to .env and fill in your values
# ─────────────────────────────────────────────────────────────

# ── Ollama (Local AI) ──────────────────────────────────────
# URL of your Ollama instance
OLLAMA_BASE_URL=http://localhost:11434
# Model to use for AI analysis (recommended: llama3.1, mistral, codellama)
OLLAMA_MODEL=llama3.1

# ── PeeringDB ─────────────────────────────────────────────
# Optional: PeeringDB API key for higher rate limits
# Get one at: https://www.peeringdb.com/apidocs/
PEERINGDB_API_KEY=

# ── RIPE Stat ─────────────────────────────────────────────
# Optional: RIPE Stat data source key
# Register at: https://stat.ripe.net/
RIPE_STAT_SOURCE_APP=peercortex

# ── RPKI ──────────────────────────────────────────────────
# Routinator API endpoint (if running locally)
ROUTINATOR_URL=http://localhost:8323
# RIPE RPKI Validator endpoint
RIPE_RPKI_VALIDATOR_URL=https://rpki-validator.ripe.net/api/v1

# ── Cache ─────────────────────────────────────────────────
# SQLite database path for caching API responses
CACHE_DB_PATH=./peercortex-cache.db
# Cache TTL in seconds (default: 1 hour)
CACHE_TTL_SECONDS=3600

# ── Server ────────────────────────────────────────────────
# MCP Server transport (stdio or sse)
MCP_TRANSPORT=stdio
# Port for SSE transport (only used if MCP_TRANSPORT=sse)
MCP_PORT=3100

# ── Logging ───────────────────────────────────────────────
# Log level: debug, info, warn, error
LOG_LEVEL=info
