Renombrar FlotillasGPS a ADAN en todo el proyecto

This commit is contained in:
FlotillasGPS Developer
2026-01-21 08:26:01 +00:00
parent 51d78bacf4
commit 6d24ad6f61
37 changed files with 350 additions and 345 deletions

View File

@@ -0,0 +1,58 @@
[Unit]
Description=Sistema de ADAN - API Backend
Documentation=https://github.com/tuorganizacion/adan
After=network.target postgresql.service redis.service
Wants=postgresql.service redis.service
[Service]
Type=exec
User=root
Group=root
WorkingDirectory=/opt/adan/backend
# Cargar variables de entorno
EnvironmentFile=/opt/adan/.env
# Comando de inicio
# Uvicorn con multiples workers para produccion
ExecStart=/opt/adan/backend/venv/bin/uvicorn \
app.main:app \
--host 0.0.0.0 \
--port 8000 \
--workers 4 \
--loop uvloop \
--http httptools \
--proxy-headers \
--forwarded-allow-ips='*' \
--access-log \
--log-level info
# Reinicio automatico
Restart=always
RestartSec=5
# Timeouts
TimeoutStartSec=30
TimeoutStopSec=30
# Limites de recursos
LimitNOFILE=65535
LimitNPROC=4096
# Seguridad
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/opt/adan /var/log/adan /tmp
# Logging
StandardOutput=journal
StandardError=journal
SyslogIdentifier=adan-api
# Health check (systemd 253+)
# WatchdogSec=30
[Install]
WantedBy=multi-user.target