Corrige la receta de integración según el código del Hub: single-realm (master) + single-client (aduanasoft), HUB_URL para el sso-exchange del relay, y URLs del dominio del CRM. Secretos en blanco (los pone el operador en el server). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
49 lines
1.8 KiB
Plaintext
49 lines
1.8 KiB
Plaintext
# ==========================================================================
|
|
# testing.crm.aduanasoft.com — AUTH REAL vía Hub (SSO relay). Copia como `.env`
|
|
# EN EL SERVIDOR y rellena los <...>. NO subas el .env con secretos al repo.
|
|
#
|
|
# Flujo: el Hub (App Launcher) redirige a /auth/sso?relay=<uuid>; el CRM
|
|
# intercambia el relay en POST {HUB_URL}/api/v1/auth/sso-exchange y entra.
|
|
# ==========================================================================
|
|
|
|
# ---- SEGURIDAD ----
|
|
ENVIRONMENT=production
|
|
DEV_LOCAL_AUTH=false
|
|
SECRET_KEY=<genera: openssl rand -hex 32>
|
|
|
|
# ---- Workspace / Hub (DEBE ser el MISMO Hub que generó el relay) ----
|
|
# Confirmar el host real de producción (workspace.aduanasoft.com o hub.aduanasoft.com):
|
|
WORKSPACE_URL=https://<hub-produccion>
|
|
HUB_URL=https://<hub-produccion>
|
|
INTERNAL_HUB_URL=https://<hub-produccion>
|
|
VITE_HUB_URL=https://<hub-produccion>
|
|
|
|
# ---- Keycloak (arquitectura single-realm / single-client) ----
|
|
KEYCLOAK_URL=https://<keycloak-produccion>/kcauth
|
|
VITE_KEYCLOAK_URL=https://<keycloak-produccion>/kcauth
|
|
KEYCLOAK_REALM=master
|
|
KEYCLOAK_CLIENT_ID=aduanasoft
|
|
KEYCLOAK_CLIENT_SECRET=<secret del producto provisionado — lo pones tú>
|
|
|
|
# ---- Dominio del CRM (mismo origen app + API vía nginx) ----
|
|
ORIGIN=https://testing.crm.aduanasoft.com
|
|
APP_PUBLIC_URL=https://testing.crm.aduanasoft.com
|
|
VITE_API_URL=https://testing.crm.aduanasoft.com/api/
|
|
INTERNAL_API_URL=http://backend:8000/api/
|
|
CORS_ORIGINS=https://testing.crm.aduanasoft.com
|
|
|
|
# ---- Base de datos (PostgreSQL) ----
|
|
CORE_DB_HOST=postgres
|
|
CORE_DB_PORT=5432
|
|
CORE_DB_NAME=crm_core
|
|
CORE_DB_USER=<usuario>
|
|
POSTGRES_APP_PASSWORD=<password fuerte>
|
|
|
|
# ---- MinIO / S3 ----
|
|
S3_ENDPOINT_URL=http://minio:9000
|
|
S3_ACCESS_KEY=<access>
|
|
S3_SECRET_KEY=<secret>
|
|
S3_BUCKET=crm
|
|
S3_REGION=us-east-1
|
|
S3_USE_SSL=false
|