Fix jwt-token

This commit is contained in:
2025-08-17 05:25:15 +02:00
parent 22d52b84b5
commit ce87df0eb5
4 changed files with 172 additions and 31 deletions

View File

@@ -1,22 +1,44 @@
# Docker Environment Configuration
# Copy this file to .env and update with your actual values
# Database Configuration (automatically set by docker-compose)
DB_HOST=drone-detection-db
DB_PORT=5432
DB_NAME=drone_detection
DB_USER=postgres
DB_PASSWORD=your_secure_password_here
# Redis Configuration (automatically set by docker-compose)
REDIS_HOST=drone-detection-redis
REDIS_PORT=6379
# JWT Configuration
JWT_SECRET=your-super-secret-jwt-key-change-in-production-make-it-long-and-random
# Server Configuration
PORT=3002
NODE_ENV=development
# Twilio Configuration (for SMS alerts)
# CORS Configuration
CORS_ORIGIN=http://localhost:3001
# Rate Limiting
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100
# Twilio SMS Configuration (Optional - leave empty to disable SMS)
# Get these from https://console.twilio.com/
TWILIO_ACCOUNT_SID=
TWILIO_AUTH_TOKEN=
TWILIO_PHONE_NUMBER=
# Email Configuration (Optional - for future implementation)
SMTP_HOST=
SMTP_PORT=587
SMTP_USER=
SMTP_PASSWORD=
SMTP_FROM=
# Optional: Override default settings
# NODE_ENV=production
# CORS_ORIGIN=http://localhost:3000
# Frontend Configuration
VITE_API_URL=http://localhost:3002/api
VITE_WS_URL=ws://localhost:3002