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.
44 lines
942 B
Desktop File
44 lines
942 B
Desktop File
[Unit]
|
|
Description=Cloudflare Tunnel - Sistema de Flotillas
|
|
Documentation=https://developers.cloudflare.com/cloudflare-one/connections/connect-apps
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=exec
|
|
User=root
|
|
Group=root
|
|
|
|
# Directorio de configuracion
|
|
WorkingDirectory=/etc/cloudflared
|
|
|
|
# Comando de inicio
|
|
# Opcion 1: Usando token (recomendado)
|
|
ExecStart=/usr/local/bin/cloudflared tunnel --no-autoupdate run --token ${CLOUDFLARE_TUNNEL_TOKEN}
|
|
|
|
# Opcion 2: Usando archivo de configuracion
|
|
# ExecStart=/usr/local/bin/cloudflared tunnel --config /etc/cloudflared/config.yml run
|
|
|
|
# Cargar variables de entorno
|
|
EnvironmentFile=/opt/flotillas/.env
|
|
|
|
# Reinicio automatico
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
# Timeouts
|
|
TimeoutStartSec=60
|
|
TimeoutStopSec=30
|
|
|
|
# Logging
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=cloudflared
|
|
|
|
# Seguridad
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|