Files
url_tracker_tool/.env
Andrei 76f3cf22d1 fix: resolve production deployment issues and switch to in-memory rate limiting
- Fix CORS configuration to use CORS_ORIGIN env variable
- Switch from Redis-based to in-memory rate limiting for stability
- Fix frontend authentication error handling for public API
- Disable problematic trackingRateLimit middleware
- Update environment configuration for production

This resolves hanging issues with tracking API and enables
frontend forms to work properly on production.
2025-08-19 18:25:48 +00:00

33 lines
824 B
Bash

# Production Environment Variables for Redirect Intelligence v2
# Copy this to .env and customize for your deployment
# Database
DB_PASSWORD=R9dbMfTkksXlboeFRD+wtw==
# JWT Secret (generate a strong secret)
JWT_SECRET=syiIpEqLvhXjbpyC2+VccCMfhz6rznIObRdZMfqf7Hg=
# CORS Origin (your domain)
CORS_ORIGIN=https://urltrackertool.com
# API URL for frontend
VITE_API_URL=https://api.urltrackertool.com
# Optional: Monitoring and Analytics
# SENTRY_DSN=your_sentry_dsn_here
# ANALYTICS_ID=your_analytics_id_here
# Optional: Email Configuration (for notifications)
# SMTP_HOST=smtp.gmail.com
# SMTP_PORT=587
# SMTP_USER=your_email@gmail.com
# SMTP_PASS=your_app_password
# Optional: Rate Limiting
DEFAULT_RATE_LIMIT=100
AUTHENTICATED_RATE_LIMIT=1000
# Optional: File Upload Limits
MAX_FILE_SIZE=10485760
MAX_BULK_URLS=10000