mirror of
https://github.com/Dvorinka/Trackeep.git
synced 2026-06-03 20:12:58 +00:00
feat: major feature updates and cleanup
- Add Redis architecture implementation - Update browser extension functionality - Clean up deprecated files and documentation - Enhance backend handlers for auth, messages, search - Add new configuration options and settings - Update Docker and deployment configurations
This commit is contained in:
+66
-70
@@ -21,13 +21,17 @@ 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_SECRET is used for both JWT token signing and 2FA backup codes encryption
|
||||
# Must be exactly 64 hexadecimal characters (32 bytes when decoded)
|
||||
# Generate with: openssl rand -hex 32
|
||||
# Or with Node.js: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
|
||||
# Or with Python: python3 -c "import secrets; print(secrets.token_hex(32))"
|
||||
JWT_SECRET=your_jwt_secret_here_64_hex_characters_long_exactly
|
||||
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
|
||||
# Now uses JWT_SECRET for encryption - no separate ENCRYPTION_KEY needed
|
||||
# This ensures 2FA backup codes are encrypted with the same key used for JWT tokens
|
||||
|
||||
# File Upload Configuration
|
||||
UPLOAD_DIR=./uploads
|
||||
@@ -36,77 +40,69 @@ 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
|
||||
# AI Services Configuration
|
||||
# AI services are now configured only within the Trackeep application
|
||||
# No environment variables needed - configure tokens and settings in the app settings
|
||||
|
||||
# Search Configuration
|
||||
SEARCH_RESULTS_LIMIT=10
|
||||
SEARCH_CACHE_TTL=300
|
||||
SEARCH_RATE_LIMIT=100
|
||||
# =============================================================================
|
||||
# REDIS CONFIGURATION (Optional but Recommended)
|
||||
# =============================================================================
|
||||
# Redis provides caching, session storage, rate limiting, and real-time features
|
||||
# Uncomment and configure these to enable Redis support
|
||||
|
||||
# Update Configuration
|
||||
# Application version (used for update checking)
|
||||
APP_VERSION=1.0.0
|
||||
# REDIS_ADDR=redis:6379
|
||||
# REDIS_PASSWORD=your_secure_redis_password_here
|
||||
# REDIS_DB=0
|
||||
# REDIS_POOL_SIZE=20
|
||||
# REDIS_DIAL_TIMEOUT=5s
|
||||
# REDIS_READ_TIMEOUT=3s
|
||||
# REDIS_WRITE_TIMEOUT=3s
|
||||
|
||||
# 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
|
||||
# Feature Flags - Enable/disable Redis features
|
||||
# REDIS_SESSIONS_ENABLED=true
|
||||
# REDIS_CACHE_ENABLED=true
|
||||
# REDIS_RATELIMIT_ENABLED=true
|
||||
# REDIS_PUBSUB_ENABLED=true
|
||||
|
||||
# Update settings
|
||||
AUTO_UPDATE_CHECK=false
|
||||
UPDATE_CHECK_INTERVAL=24h
|
||||
PRERELEASE_UPDATES=false
|
||||
# Redis Memory Settings (for Docker Compose)
|
||||
# REDIS_MAXMEMORY=256mb
|
||||
# REDIS_MAXMEMORY_POLICY=allkeys-lru
|
||||
|
||||
# Note: No GitHub token configuration needed
|
||||
# Updates use the OAuth service which handles GitHub authentication automatically
|
||||
# =============================================================================
|
||||
# PERFORMANCE TUNING
|
||||
# =============================================================================
|
||||
# Enable these settings for better performance with Redis caching
|
||||
|
||||
# Cache TTL settings (in seconds)
|
||||
# SEARCH_CACHE_TTL=300
|
||||
# ANALYTICS_CACHE_TTL=900
|
||||
# USER_CACHE_TTL=900
|
||||
# SESSION_CACHE_TTL=86400 # 24 hours
|
||||
|
||||
# Rate limiting settings
|
||||
# RATE_LIMIT_REQUESTS_PER_MINUTE=100
|
||||
# RATE_LIMIT_BURST_SIZE=150
|
||||
# AI_RATE_LIMIT_REQUESTS_PER_MINUTE=20
|
||||
# UPLOAD_RATE_LIMIT_REQUESTS_PER_MINUTE=10
|
||||
|
||||
# =============================================================================
|
||||
# NOTE: Redis Deployment
|
||||
# =============================================================================
|
||||
# To deploy with Redis, add the Redis service to your docker-compose.yml:
|
||||
#
|
||||
# redis:
|
||||
# image: redis:7-alpine
|
||||
# restart: unless-stopped
|
||||
# volumes:
|
||||
# - redis_data:/data
|
||||
# - ./redis.conf:/usr/local/etc/redis/redis.conf:ro
|
||||
# command: redis-server /usr/local/etc/redis/redis.conf
|
||||
# environment:
|
||||
# - REDIS_PASSWORD=${REDIS_PASSWORD}
|
||||
# networks:
|
||||
# - trackeep-network
|
||||
#
|
||||
# And add to volumes: redis_data:
|
||||
|
||||
Reference in New Issue
Block a user