ips-nodo-dominio/.env.example
Alejandro Gomez Auad 387ee331ed Add env flag to filter DocumentReference type locally in ITI-67
DOCUMENT_REGISTRY_FILTER_TYPE_LOCALLY, when enabled, skips the `type`
query param on GET /DocumentReference to the document registry and
filters the resulting searchset by type client-side instead, matching
the same system|code / |code / code token semantics used elsewhere.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-16 22:04:08 +00:00

95 lines
3.7 KiB
Plaintext

# =============================================================================
# IPS Nodo Dominio — Variables de entorno
# Copiar este archivo a .env y completar los valores requeridos.
# =============================================================================
# =============================================================================
# VARIABLES DE ENTORNO REQUERIDAS
# =============================================================================
# URL base del nodo (usada por bus-gateway internamente)
NODO_URL_BASE=http://localhost
# Secreto compartido para firmar tokens JWT (HS256) contra el Bus
BUS_JWT_SECRET=your-shared-secret
# Identificador del emisor JWT (ej.: URL del repositorio del nodo)
BUS_ISSUER=https://your-repositorio-url
# =============================================================================
# INFRAESTRUCTURA
# =============================================================================
# Zona horaria para todos los servicios
TZ=America/Argentina/Buenos_Aires
# =============================================================================
# BUS DE SALUD
# =============================================================================
# URL base del Bus de salud nacional
BUS_URL=https://bus-test.msal.gob.ar
# Scopes OAuth para el Master Patient Index
MPI_SCOPE=Patient/*.read,Patient/*.write
# Scopes OAuth para el Document Registry
DOCUMENT_REGISTRY_SCOPE=DocumentReference/*.read,DocumentReference/*.write
# =============================================================================
# BUS DE SALUD — Opcionales (por defecto usan BUS_URL)
# =============================================================================
# URL del Master Patient Index si difiere del Bus principal
MPI_URL=https://bus-test.msal.gob.ar/masterfile-federacion-service/fhir/Patient
# URL del Document Registry si difiere del Bus principal
DOCUMENT_REGISTRY_URL=https://bus-test.msal.gob.ar/fhir/DocumentReference
# ITI-67: si es true, no se envía el parámetro `type` en el GET /DocumentReference
# al índice de documentos; se pide todo por subject y se filtra por type localmente.
DOCUMENT_REGISTRY_FILTER_TYPE_LOCALLY=false
# Habilita logs detallados de requests/responses salientes al Bus (true | false)
BUS_DEBUG=false
# =============================================================================
# NODO NACIONAL
# =============================================================================
# URL del nodo nacional (bundle-signer): ejecuta las transformaciones IPS ($ddcc, $dvc, $icvp2, $meow)
BUNDLE_SIGNER_URL=https://conectaton.msal.gob.ar/nodo/fhir
# =============================================================================
# NGINX
# =============================================================================
# Modo de operación del proxy inverso: http (default) o https
NGINX_CONF=http
# Rutas a los certificados TLS del servidor (solo necesarias en modo https)
# SSL_CERT_PATH=./certs/server.crt
# SSL_KEY_PATH=./certs/server.key
# =============================================================================
# HAPI FHIR (Spring Boot)
# =============================================================================
SPRING_CONFIG_LOCATION="file:///data/hapi/application.yaml"
SPRING_DATASOURCE_URL="jdbc:postgresql://hapi-db:5433/root"
SPRING_DATASOURCE_USERNAME="root"
SPRING_DATASOURCE_PASSWORD="hapifhir2023"
SPRING_DATASOURCE_DRIVERCLASSNAME="org.postgresql.Driver"
SPRING_JPA_PROPERTIES_HIBERNATE_DIALECT="ca.uhn.fhir.jpa.model.dialect.HapiFhirPostgres94Dialect"
# =============================================================================
# POSTGRESQL (hapi-db)
# =============================================================================
POSTGRES_DB="root"
POSTGRES_USER="root"
POSTGRES_PASSWORD="hapifhir2023"