diff --git a/.env b/.env index 638fe9f..deedbdf 100644 --- a/.env +++ b/.env @@ -5,3 +5,18 @@ # For production/domain deployment, use relative URLs (default): VITE_API_URL=/drones/api VITE_WS_URL=/drones + +# Docker Environment Configuration +# Copy this file to .env and update with your actual values + +# JWT Configuration +JWT_SECRET=your-super-secret-jwt-key-change-in-production-make-it-long-and-random + +# Twilio Configuration (for SMS alerts) +TWILIO_ACCOUNT_SID=your_twilio_account_sid_here +TWILIO_AUTH_TOKEN=your_twilio_auth_token_here +TWILIO_PHONE_NUMBER=your_twilio_phone_number_here + +# Optional: Override default settings +# NODE_ENV=production +# CORS_ORIGIN=http://localhost:3000 diff --git a/.env.server b/.env.server new file mode 100644 index 0000000..3393198 --- /dev/null +++ b/.env.server @@ -0,0 +1,23 @@ +# Docker Environment Configuration +# Copy this file to .env and update with your actual values + +# JWT Configuration +JWT_SECRET=your-super-secret-jwt-key-change-in-production-make-it-long-and-random + +# Twilio Configuration (for SMS alerts) +TWILIO_ACCOUNT_SID=your_twilio_account_sid_here +TWILIO_AUTH_TOKEN=your_twilio_auth_token_here +TWILIO_PHONE_NUMBER=your_twilio_phone_number_here + +# Frontend API Configuration +# For production/domain deployment, use relative URLs: +VITE_API_URL=/drones/api +VITE_WS_URL=/drones + +# For local development, uncomment these lines: +# VITE_API_URL=http://localhost:3002/api +# VITE_WS_URL=ws://localhost:3002 + +# Optional: Override default settings +# NODE_ENV=production +# CORS_ORIGIN=http://localhost:3000