FlotillasGPS - Sistema completo de monitoreo de flotillas GPS
Sistema completo para monitoreo y gestion de flotas de vehiculos con: - Backend FastAPI con PostgreSQL/TimescaleDB - Frontend React con TypeScript y TailwindCSS - App movil React Native con Expo - Soporte para dispositivos GPS, Meshtastic y celulares - Video streaming en vivo con MediaMTX - Geocercas, alertas, viajes y reportes - Autenticacion JWT y WebSockets en tiempo real Documentacion completa y guias de usuario incluidas.
This commit is contained in:
86
.env.example
Normal file
86
.env.example
Normal file
@@ -0,0 +1,86 @@
|
||||
# =============================================================================
|
||||
# FlotillasGPS - Variables de Entorno
|
||||
# =============================================================================
|
||||
# Copiar este archivo a .env y configurar los valores
|
||||
|
||||
# =============================================================================
|
||||
# BASE DE DATOS
|
||||
# =============================================================================
|
||||
DATABASE_URL=postgresql://flotillas:password@localhost:5432/flotillas_db
|
||||
DB_POOL_SIZE=10
|
||||
DB_MAX_OVERFLOW=20
|
||||
|
||||
# =============================================================================
|
||||
# REDIS
|
||||
# =============================================================================
|
||||
REDIS_URL=redis://localhost:6379
|
||||
REDIS_DB=0
|
||||
|
||||
# =============================================================================
|
||||
# SEGURIDAD
|
||||
# =============================================================================
|
||||
# Generar con: openssl rand -base64 64
|
||||
JWT_SECRET=cambiar_por_clave_segura_muy_larga
|
||||
ACCESS_TOKEN_EXPIRE_MINUTES=1440
|
||||
REFRESH_TOKEN_EXPIRE_DAYS=7
|
||||
|
||||
# Generar con: openssl rand -base64 32
|
||||
ENCRYPTION_KEY=cambiar_por_otra_clave_segura
|
||||
|
||||
# =============================================================================
|
||||
# TRACCAR
|
||||
# =============================================================================
|
||||
TRACCAR_HOST=localhost
|
||||
TRACCAR_PORT=5055
|
||||
|
||||
# =============================================================================
|
||||
# VIDEO STREAMING (MediaMTX)
|
||||
# =============================================================================
|
||||
MEDIAMTX_API=http://localhost:9997
|
||||
MEDIAMTX_RTSP=rtsp://localhost:8554
|
||||
MEDIAMTX_WEBRTC=http://localhost:8889
|
||||
MEDIAMTX_HLS=http://localhost:8888
|
||||
VIDEO_STORAGE_PATH=/opt/flotillas/videos
|
||||
VIDEO_RETENTION_DAYS=30
|
||||
|
||||
# =============================================================================
|
||||
# MQTT (Meshtastic)
|
||||
# =============================================================================
|
||||
MQTT_ENABLED=true
|
||||
MQTT_HOST=localhost
|
||||
MQTT_PORT=1883
|
||||
MQTT_USER=mesh_gateway
|
||||
MQTT_PASSWORD=cambiar_password
|
||||
MQTT_TOPIC=flotillas/mesh/#
|
||||
|
||||
# =============================================================================
|
||||
# NOTIFICACIONES
|
||||
# =============================================================================
|
||||
SMTP_ENABLED=false
|
||||
SMTP_HOST=smtp.ejemplo.com
|
||||
SMTP_PORT=587
|
||||
SMTP_USER=notificaciones@ejemplo.com
|
||||
SMTP_PASSWORD=password
|
||||
SMTP_FROM=FlotillasGPS <notificaciones@ejemplo.com>
|
||||
|
||||
# =============================================================================
|
||||
# DOMINIO Y URLs
|
||||
# =============================================================================
|
||||
DOMAIN=flotillas.tudominio.com
|
||||
API_URL=https://flotillas.tudominio.com/api
|
||||
FRONTEND_URL=https://flotillas.tudominio.com
|
||||
|
||||
# =============================================================================
|
||||
# CONFIGURACION
|
||||
# =============================================================================
|
||||
ENVIRONMENT=production
|
||||
DEBUG=false
|
||||
LOG_LEVEL=info
|
||||
CORS_ORIGINS=https://flotillas.tudominio.com
|
||||
DEFAULT_MAX_SPEED=80
|
||||
DEFAULT_STOP_ALERT_MINUTES=30
|
||||
DEFAULT_OFFLINE_ALERT_MINUTES=15
|
||||
GPS_UPDATE_INTERVAL=10
|
||||
LOCATIONS_RETENTION_DAYS=90
|
||||
ALERTS_RETENTION_DAYS=365
|
||||
MAX_UPLOAD_SIZE=50
|
||||
Reference in New Issue
Block a user