Const
NODE_ENV=development
FULL_DEV_LOGS=true
HEALTH_ENDPOINT_PORT=9000
NODE_ENV=development
NODE_ENV=production
LOG_LEVEL=INFO
LOG_MASK_KEYWORDS=secret,password,connectionString
LOG_MASK_MAX_DEPTH=10
SECURE_LOGGING_MODE=UNSAFE_DEBUG_UNSAFE
SERVICE_ID=my-business-service
This is used to determine if the service should use ephemeral ports for general endpoints during development. This is useful to avoid port conflicts when running multiple services having the same general port number (i.e. liveness/readiness, maintenance, monitoring, etc.).
However if running services in a container
, this should be set to false
, as the container isolates the ports for each service.
NOTE: this is effective only when the service is running in development mode (i.e. NODE_ENV=development).
USE_EPHEMERAL_PORTS_DURING_DEV=true
Generated using TypeDoc
The basic Configuration type