Nuevo start con interaccion para elegir que tipo de servidor estamos

This commit is contained in:
2026-02-23 12:15:44 -06:00
parent a9b9d8290b
commit 17c1ef3947
5 changed files with 140 additions and 79 deletions

View File

@@ -27,33 +27,45 @@ CORE_DB_NAME=anexo76_core
CORE_DB_USER=postgres
CORE_DB_PASSWORD=postgres
# Lista de orígenes permitidos (CORS)
# Ejemplo para Hub: http://localhost:5173,http://100.78.6.108:5174,http://100.78.6.108:8001
CORS_ORIGINS=http://localhost:5173,http://localhost:3000
# ---- API Tipo cambio (External) ---
EXTERNAL_API_URL=http://74.208.80.245:3000
EXTERNAL_API_USER=devAS
EXTERNAL_API_PASSWORD=T6Y4mqP09Y[-2-3H
# ----- API SITAR (Warnings) ---
SITAR_API_URL=""
SITAR_API_USER=""
SITAR_API_PASSWORD=""
# ----- Frontend -----
NODE_ENV=development
VITE_API_URL=http://localhost:8000/api
INTERNAL_API_URL=http://backend:8000/api
VITE_KEYCLOAK_REALM=master
VITE_KEYCLOAK_URL=http://localhost:8080
VITE_KEYCLOAK_URL=http://localhost:8080/kcauth
VITE_KEYCLOAK_CLIENT_ID=anexo76-frontend
# ----- Sitar API -----
SITAR_API_URL=http://api.sitar.aduanasoft.com
SITAR_API_USER=your_sitar_user
SITAR_API_PASSWORD=your_sitar_password
#------ Celery / Valkey ----------
VALKEY_URL=redis://valkey:6379/0
# ----- Help Center (Sincronización) -----
# Si es CLIENTE, establecer la URL del Hub:
# ==================================
# CONFIGURACIÓN DE SINCRONIZACIÓN
# ==================================
# Hub IP: 100.78.6.108
# URL del Hub para sincronización (Solo si es CLIENTE)
# Ejemplo: http://100.78.6.108:8001/api/v1/core/help-center/sync/
CENTRAL_SERVER_URL=
# Si es HUB, establecer las URLs de los clientes (separadas por comas):
SPOKE_URLS=
# Token de seguridad para la sincronización (debe ser el mismo en Hub y Clientes)
SYNC_SECRET_TOKEN=change-this-sync-token-in-production
# ID único del cliente (opcional, generado automáticamente si está vacío)
# UUID único de este cliente (Opcional, se genera uno si está vacío)
CLIENT_UUID=
CORS_ORIGINS=http://localhost:5173,http://localhost:3000
# Token de seguridad compartido (Debe ser IDÉNTICO en Hub y Clientes)
SYNC_SECRET_TOKEN=change-this-sync-token-in-production
# Lista de spokes (Solo si es HUB y desea retransmitir a otros - Opcional)
SPOKE_URLS=""