Skip to main content

Environment Variables

The following table lists all primary configuration options available for UDMG. Each option can be set either as an HCL argument in the configuration file or overridden by an environment variable at runtime.

While environment variables take precedence over HCL arguments when both are provided, it is generally recommended to configure settings using HCL files to maintain clarity, consistency, and ease of management. Overriding with environment variables should be used sparingly, typically for temporary adjustments or in containerized deployment scenarios.

info

All HCL arguments described on this page use dot notation to reference their full path from the root of the configuration file.

Environment Variable NameHCL Argument Name
UDMG_INSTANCE_NAMEinstance_name
UDMG_DATABASE_AUTO_MIGRATEauto_migrate
UDMG_WORK_DIRECTORY_PATHwork_directory_path
UDMG_LOG_LEVELlog.level
UDMG_LOG_FORMATlog.format
UDMG_LOG_PATHlog.file
UDMG_LOG_ROTATElog.rotate.enable
UDMG_LOG_ROTATE_FREQUENCYlog.rotate.frequency
UDMG_LOG_ROTATE_SIZElog.rotate.size
UDMG_LOG_ROTATE_FORMATlog.rotate.file_format
UDMG_JWT_SIGNING_KEYjwt.signing_key
UDMG_JWT_ACCESS_TOKEN_DURATIONjwt.access_token.duration
UDMG_JWT_REFRESH_TOKEN_DURATIONjwt.refresh_token.duration
UDMG_API_LISTEN_INETapi.inet
UDMG_API_LISTEN_PORTapi.port
UDMG_API_SPEC_ENABLEapi.spec
UDMG_API_CSRF_ENABLEapi.csrf
UDMG_API_CORS_ENABLEapi.cors
UDMG_API_CORS_DOMAINapi.cors_domain
UDMG_API_VERBOSEapi.verbose
UDMG_API_SECUREapi.secure.enable
UDMG_API_PUB_KEYapi.secure.pub_key
UDMG_API_PRIV_KEYapi.secure.priv_key
UDMG_TRANSFER_RETRY_DELAYtransfer.retry_delay
UDMG_TRANSFER_MAX_RETRY_DELAYtransfer.max_retry_delay
UDMG_TRANSFER_RETRY_BACKOFFtransfer.retry_backoff
UDMG_TRANSFER_MAX_RETRIEStransfer.max_retries
UDMG_TRANSFER_CHECK_INTERVALtransfer.check_interval
UDMG_OBSERVABILITY_API_LISTEN_INETobservability.api.inet
UDMG_OBSERVABILITY_API_LISTEN_PORTobservability.api.port
UDMG_OBSERVABILITY_API_SPECobservability.api.spec
UDMG_OBSERVABILITY_API_ENABLEobservability.api.enable
UDMG_OBSERVABILITY_DEBUG_ENABLEobservability.api.debug.enable
UDMG_OBSERVABILITY_DEBUG_USERobservability.api.debug.user
UDMG_OBSERVABILITY_DEBUG_PASSWORDobservability.api.debug.password
UDMG_PROMETHEUS_ENABLEobservability.prometheus.enable
UDMG_OPENTELEMETRY_ENABLEobservability.opentelemetry.enable
UDMG_OPENTELEMETRY_HOSTobservability.opentelemetry.host
UDMG_OPENTELEMETRY_PORTobservability.opentelemetry.port
UDMG_DATABASE_ENGINEdatabase.engine
UDMG_DATABASE_NAMEdatabase.instance
UDMG_DATABASE_HOSTNAMEdatabase.hostname
UDMG_DATABASE_PORTdatabase.port
UDMG_DATABASE_USERdatabase.user
UDMG_DATABASE_PASSWORDdatabase.password
UDMG_DATABASE_MAX_CONNECTIONSdatabase.options.max_connections
UDMG_DATABASE_IDLE_CONNECTIONSdatabase.options.idle_connections
UDMG_DATABASE_MAX_RETRIESdatabase.options.max_retries
UDMG_DATABASE_INITIAL_INTERVALdatabase.options.initial_interval
UDMG_DATABASE_MAX_INTERVALdatabase.options.max_interval
UDMG_DATABASE_SECURE_ENABLEdatabase.secure.enable
UDMG_DATABASE_SECURE_MODEdatabase.secure.mode
UDMG_DATABASE_PUB_KEYdatabase.secure.pubKey
UDMG_DATABASE_PRIV_KEYdatabase.secure.priv_key
UDMG_SECURITY_PASSWORD_POLICY_MIN_LENsecurity.password.min_lower_case
UDMG_SECURITY_PASSWORD_POLICY_MIN_UPPERsecurity.password.min_upper_case
UDMG_SECURITY_PASSWORD_POLICY_MIN_LOWERsecurity.password.min_lower_case
UDMG_SECURITY_PASSWORD_POLICY_MIN_NUMBERSsecurity.password.min_numbers
UDMG_SECURITY_PASSWORD_POLICY_MIN_SYMBOLSsecurity.password.min_symbols
UDMG_SECURITY_IGNORE_SYSTEM_USER_IP_FILTERsecurity.ignore_system_user_ip_filter
UDMG_SECURITY_FILE_PERMISSIONSsecurity.file_permissions
UDMG_SECURITY_DIRECTORY_PERMISSIONSsecurity.directory_permissions
UDMG_LDAP_ACCOUNT_SYNC_INTERVALldap.ldap_account_sync_interval
UDMG_LDAP_USER_SYNC_INTERVALldap.ldap_user_sync_interval
UDMG_ICAP_TIMEOUTicap.timeout
UDMG_ICAP_RETRYicap.retry
N/Aicap.vendor.name
N/Aicap.vendor.headers
UDMG_UAC_REST_ENABLEuac.enable
UDMG_UAC_REST_URLSuac.urls
UDMG_UAC_REST_USERNAMEuac.username
UDMG_UAC_REST_PASSWORDuac.password
UDMG_UAC_REST_EVENT_NAMEuac.event_name
UDMG_UAC_REST_EVENT_TTLuac.event_ttl
UDMG_PROTOCOL_SESSION_IDLE_TIMEOUTprotocol.session_idle_timeout
UDMG_CLUSTER_MODEcluster.mode
UDMG_CLUSTER_HEARTBEATcluster.heartbeat
UDMG_CLUSTER_DEADLINEcluster.deadline
UDMG_CLUSTER_CLIENT_PORTcluster.client_port
UDMG_CLUSTER_CLUSTER_PORTcluster.cluster_port