# Server Configuration
PORT=8080
GIN_MODE=debug
READ_TIMEOUT=15s
WRITE_TIMEOUT=15s
IDLE_TIMEOUT=60s
SHUTDOWN_TIMEOUT=30s

# Database Configuration
DB_TYPE=postgres
DB_HOST=localhost
DB_PORT=5432
DB_USER=trackeep
DB_PASSWORD=your_password_here
DB_NAME=trackeep
DB_SSL_MODE=disable

# Docker Compose Database (used by docker-compose.yml)
POSTGRES_DB=trackeep
POSTGRES_USER=trackeep
POSTGRES_PASSWORD=your_secure_password_here

# JWT Configuration
# JWT_SECRET is auto-generated on startup and stored in jwt_secret.key
# You can override by setting JWT_SECRET environment variable if needed
JWT_EXPIRES_IN=24h

# Encryption Configuration
# ENCRYPTION_KEY is auto-generated on startup and stored in encryption.key
# You can override by setting ENCRYPTION_KEY environment variable if needed

# File Upload Configuration
UPLOAD_DIR=./uploads
MAX_FILE_SIZE=10485760

# CORS Configuration
CORS_ALLOWED_ORIGINS=*

# AI Services Configuration
LONGCAT_ON=false
LONGCAT_API_KEY=your_longcat_api_key_here
LONGCAT_BASE_URL=https://api.longcat.chat
LONGCAT_OPENAI_ENDPOINT=https://api.longcat.chat/openai
LONGCAT_ANTHROPIC_ENDPOINT=https://api.longcat.chat/anthropic
LONGCAT_MODEL=LongCat-Flash-Chat
LONGCAT_MODEL_THINKING=LongCat-Flash-Thinking
LONGCAT_FORMAT=openai

# Mistral AI Configuration
MISTRAL_ON=false
MISTRAL_API_KEY=your_mistral_api_key_here
MISTRAL_MODEL=mistral-small-latest
MISTRAL_MODEL_THINKING=mistral-large-latest

# Grok AI Configuration
GROK_ON=false
GROK_API_KEY=your_grok_api_key_here
GROK_BASE_URL=https://api.x.ai/v1
GROK_MODEL=grok-4-1-fast-non-reasoning-latest
GROK_MODEL_THINKING=grok-4-1-fast-reasoning-latest

# DeepSeek Configuration
DEEPSEEK_ON=false
DEEPSEEK_API_KEY=your_deepseek_api_key_here
DEEPSEEK_BASE_URL=https://api.deepseek.com
DEEPSEEK_MODEL=deepseek-chat
DEEPSEEK_MODEL_THINKING=deepseek-reasoner

# Ollama Configuration
OLLAMA_ON=false
OLLAMA_BASE_URL=http://localhost:11434
OLLAMA_MODEL=llama3.1
OLLAMA_MODEL_THINKING=llama3.1

# OpenRouter Configuration
OPENROUTER_ON=false
OPENROUTER_API_KEY=your_openrouter_api_key_here
OPENROUTER_BASE_URL=https://openrouter.ai/api
OPENROUTER_MODEL=openrouter/auto
OPENROUTER_MODEL_THINKING=openrouter/auto

# Demo Mode Configuration
VITE_DEMO_MODE=false

# Browser Search API Configuration
BRAVE_API_KEY=your_brave_api_key_here
BRAVE_SEARCH_BASE_URL=https://api.search.brave.com/res/v1/web/search
SERPER_API_KEY=your_serper_api_key_here
SERPER_BASE_URL=https://google.serper.dev/search
SEARCH_API_PROVIDER=brave # Options: brave, serper, demo

# Search Configuration
SEARCH_RESULTS_LIMIT=10
SEARCH_CACHE_TTL=300
SEARCH_RATE_LIMIT=100

# Update Configuration
# Application version (used for update checking)
APP_VERSION=1.0.0

# OAuth service configuration (REQUIRED)
# The OAuth service must be running for updates to work
OAUTH_SERVICE_URL=http://localhost:9090
JWT_SECRET=your-jwt-secret-key

# Update settings
AUTO_UPDATE_CHECK=false
UPDATE_CHECK_INTERVAL=24h
PRERELEASE_UPDATES=false

# Note: No GitHub token configuration needed
# Updates use the OAuth service which handles GitHub authentication automatically
