79 lines
1.9 KiB
Plaintext
79 lines
1.9 KiB
Plaintext
# =============================================================================
|
|
# ERP-SUITE: CONSTRUCCION Backend - Production Environment
|
|
# =============================================================================
|
|
# Servidor: 72.60.226.4
|
|
# Dominio: api.construccion.erp.isem.dev
|
|
# Schema BD: construccion (7 sub-schemas, 110 tablas)
|
|
# =============================================================================
|
|
|
|
# Application
|
|
NODE_ENV=production
|
|
PORT=3021
|
|
API_PREFIX=api
|
|
API_VERSION=v1
|
|
|
|
# URLs
|
|
SERVER_URL=https://api.construccion.erp.isem.dev
|
|
FRONTEND_URL=https://construccion.erp.isem.dev
|
|
|
|
# Database (BD compartida con erp-core)
|
|
DB_HOST=${DB_HOST:-localhost}
|
|
DB_PORT=5432
|
|
DB_NAME=erp_generic
|
|
DB_USER=erp_admin
|
|
DB_PASSWORD=${DB_PASSWORD}
|
|
DB_SCHEMA=construccion
|
|
DB_SSL=true
|
|
DB_SYNCHRONIZE=false
|
|
DB_LOGGING=false
|
|
DB_POOL_MAX=20
|
|
|
|
# Schemas que este vertical usa (read-only de erp-core)
|
|
DB_CORE_SCHEMAS=auth,core,inventory
|
|
|
|
# Redis (instancia separada para construccion)
|
|
REDIS_HOST=${REDIS_HOST:-redis}
|
|
REDIS_PORT=6379
|
|
REDIS_PASSWORD=${REDIS_PASSWORD}
|
|
REDIS_DB=0
|
|
|
|
# JWT (compartido con erp-core para SSO)
|
|
JWT_SECRET=${JWT_SECRET}
|
|
JWT_EXPIRES_IN=15m
|
|
JWT_REFRESH_SECRET=${JWT_REFRESH_SECRET}
|
|
JWT_REFRESH_EXPIRES_IN=7d
|
|
|
|
# Multi-tenant
|
|
TENANT_HEADER=x-tenant-id
|
|
DEFAULT_TENANT_ID=
|
|
|
|
# CORS
|
|
CORS_ORIGIN=https://construccion.erp.isem.dev,https://erp.isem.dev
|
|
|
|
# Storage (MinIO para archivos de proyecto)
|
|
STORAGE_ENDPOINT=${STORAGE_ENDPOINT:-localhost}
|
|
STORAGE_PORT=9100
|
|
STORAGE_ACCESS_KEY=${MINIO_ACCESS_KEY}
|
|
STORAGE_SECRET_KEY=${MINIO_SECRET_KEY}
|
|
STORAGE_BUCKET=construccion-files
|
|
STORAGE_USE_SSL=false
|
|
|
|
# PostGIS (para geocercas HSE)
|
|
POSTGIS_ENABLED=true
|
|
|
|
# Security
|
|
ENABLE_SWAGGER=false
|
|
RATE_LIMIT_WINDOW_MS=60000
|
|
RATE_LIMIT_MAX=100
|
|
|
|
# Logging
|
|
LOG_LEVEL=warn
|
|
LOG_TO_FILE=true
|
|
LOG_FILE_PATH=/var/log/construccion/app.log
|
|
|
|
# Features específicas de construccion
|
|
FEATURE_HSE_MODULE=true
|
|
FEATURE_INFONAVIT_MODULE=true
|
|
FEATURE_ESTIMATES_MODULE=true
|
|
FEATURE_GEOCERCAS=true
|