Fix jwt-token

This commit is contained in:
2025-09-06 16:17:52 +02:00
parent ad08729521
commit b6c46d370b
2 changed files with 30 additions and 19 deletions

41
.env
View File

@@ -1,14 +1,22 @@
# For local development, uncomment these lines:
# VITE_API_URL=http://localhost:3002/api
# VITE_WS_URL=ws://localhost:3002
# Environment Configuration
# For production/domain deployment, use relative URLs (default):
VITE_API_URL=/drones/api
VITE_WS_URL=/drones
# Application Base Path
VITE_BASE_PATH=/uggla/
# Docker Environment Configuration
# Copy this file to .env and update with your actual values
# For local development, these will be auto-configured based on VITE_BASE_PATH
# For production/domain deployment, these will use relative URLs based on base path
# VITE_API_URL= (leave empty to auto-configure)
# Backend Configuration
NODE_ENV=production
PORT=3001
# Database Configuration
DB_HOST=localhost
DB_PORT=5432
DB_NAME=drone_detection
DB_USER=postgres
DB_PASSWORD=postgres123
# JWT Configuration
JWT_SECRET=your-super-secret-jwt-key-change-in-production-make-it-long-and-random
@@ -18,13 +26,16 @@ TWILIO_ACCOUNT_SID=your_twilio_account_sid_here
TWILIO_AUTH_TOKEN=your_twilio_auth_token_here
TWILIO_PHONE_NUMBER=your_twilio_phone_number_here
# CORS Configuration
CORS_ORIGIN=http://localhost:3000
# Debug Configuration
STORE_HEARTBEATS=false
STORE_DRONE_TYPE0=false
LOG_ALL_DETECTIONS=false
API_DEBUG=true
# Health Probe Simulator Configuration
PROBE_FAILRATE=30
PROBE_INTERVAL_SECONDS=60
API_BASE_URL=https://selfservice.cqers.com/drones/api
API_DEBUG=true
# Optional: Override default settings
# NODE_ENV=production
# CORS_ORIGIN=http://localhost:3000
API_BASE_URL=https://selfservice.cqers.com/uggla/api