Files
FRASA-CAS/deploy/nginx-host.conf
Consult AS Technology 04568a5603 feat: automatizaciones ronda 2 + app de dashboards /dash
- Escalado: lead asignado sin contactar >48h genera actividad URGENTE
  al coordinador (LEAD_ESCALADO_HORAS, MONDAY_COORDINADOR_USER_ID)
- Oportunidad en Aparto crea item en Apartado (fecha límite +7d);
  en Ganado crea la Venta; ambos con dedup
- GET /api/reportes/resumen: leads, funnel, unidades por desarrollo,
  cobranza y actividades en una respuesta (cache 60s)
- App dashboards (/dash): 8 KPIs + 3 gráficas Recharts, con auth
- Landing: tarjeta Tableros; docs/AUTOMATIZACIONES-MONDAY.md con las
  recetas nativas para activar en la UI
- Tests: api 158, dashboards 7, landing 5 — todo verde
2026-08-27 09:05:09 +00:00

50 lines
1.4 KiB
Plaintext

# FRASA Ecosystem — nginx del host (modo HTTP, LAN)
# Instalado en /etc/nginx/sites-available/frasa
server {
listen 80 default_server;
server_name _;
client_max_body_size 10m;
# API Gateway (servicio systemd frasa-api en 127.0.0.1:3000)
location /api/ {
proxy_pass http://127.0.0.1:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# Apps estáticas (builds de producción)
location /quote/ {
alias /root/frasa-ecosystem/apps/cotizador/dist/;
try_files $uri $uri/ /quote/index.html;
}
location /client/ {
alias /root/frasa-ecosystem/apps/alta-clientes/dist/;
try_files $uri $uri/ /client/index.html;
}
location /pay/ {
alias /root/frasa-ecosystem/apps/cobranza/dist/;
try_files $uri $uri/ /pay/index.html;
}
location /ai/ {
alias /root/frasa-ecosystem/apps/agente-ia/dist/;
try_files $uri $uri/ /ai/index.html;
}
location /dash/ {
alias /root/frasa-ecosystem/apps/dashboards/dist/;
try_files $uri $uri/ /dash/index.html;
}
# Landing (raíz)
location / {
root /root/frasa-ecosystem/apps/landing/dist;
try_files $uri $uri/ /index.html;
}
}