Reference: Advanced Wallets Configuration Settings

Core Settings

VariableDescriptionDefaultRequired
APP_MODEApplication mode-advanced-wallet-manager or master-express
BINDAddress to bind tolocalhost
TIMEOUTRequest timeout (ms)305000
NODE_ENVNode environmentdevelopment
LOG_LEVELLog levelinfo

Advanced Wallet Manager (AWM) Settings

VariableDescriptionDefaultRequired
ADVANCED_WALLET_MANAGER_PORTPort to listen on3080
KMS_URLURL to your KMS API implementation-

Note: The KMS_URL points to your implementation of the KMS API interface. You must implement this interface to connect your KMS/HSM. See Prerequisites for the specification and examples.

Master BitGo Express (MBE) Settings

VariableDescriptionDefaultRequired
MASTER_EXPRESS_PORTPort to listen on3081
BITGO_ENVBitGo environment (prod, test, staging, dev, local)test
ADVANCED_WALLET_MANAGER_URLAdvanced Wallet Manager URL-
BITGO_CUSTOM_ROOT_URICustom BitGo API root URI (overrides BITGO_ENV)-
BITGO_DISABLE_ENV_CHECKDisable environment checktrue
BITGO_AUTH_VERSIONBitGo authentication version2
BITGO_CUSTOM_BITCOIN_NETWORKCustom Bitcoin network-

Additional Settings

VariableDescriptionDefaultApplies To
RECOVERY_MODEEnable recovery mode for wallet recovery operationsfalseBoth
HTTP_LOGFILEPath to HTTP access log filelogs/http-access.logBoth
KEEP_ALIVE_TIMEOUTKeep-alive timeout in milliseconds-Both
HEADERS_TIMEOUTHeaders timeout in milliseconds-Both
IPCIPC socket path (alternative to TCP port binding)-Both

TLS/mTLS Configuration

Basic TLS Settings

VariableDescriptionDefault
TLS_MODETLS mode (mtls or disabled)mtls
CLIENT_CERT_ALLOW_SELF_SIGNEDAllow self-signed client certificatesfalse

Server Certificates (for Incoming Connections)

VariableDescriptionFormat
SERVER_TLS_KEY_PATHServer private key file pathFile path
SERVER_TLS_CERT_PATHServer certificate file pathFile path
SERVER_TLS_KEYServer private key (alternative)PEM string
SERVER_TLS_CERTServer certificate (alternative)PEM string

Client Authentication

VariableDescriptionFormat
MTLS_ALLOWED_CLIENT_FINGERPRINTSAllowed client certificate fingerprintsComma-separated list

Outbound mTLS Certificates

For Master Express → Advanced Wallet Manager

VariableDescriptionFormat
AWM_CLIENT_TLS_KEY_PATHClient private key file pathFile path
AWM_CLIENT_TLS_KEYClient private key (alternative)PEM string
AWM_CLIENT_TLS_CERT_PATHClient certificate file pathFile path
AWM_CLIENT_TLS_CERTClient certificate (alternative)PEM string
AWM_SERVER_CA_CERT_PATHAWM server CA certificate file pathFile path (required)
AWM_SERVER_CERT_ALLOW_SELF_SIGNEDAllow self-signed AWM server certificatesBoolean (default: false)

For Advanced Wallet Manager → KMS

VariableDescriptionFormat
KMS_CLIENT_TLS_KEY_PATHClient private key file pathFile path
KMS_CLIENT_TLS_KEYClient private key (alternative)PEM string
KMS_CLIENT_TLS_CERT_PATHClient certificate file pathFile path
KMS_CLIENT_TLS_CERTClient certificate (alternative)PEM string
KMS_SERVER_CA_CERT_PATHKMS server CA certificate file pathFile path (required)
KMS_SERVER_CERT_ALLOW_SELF_SIGNEDAllow self-signed KMS server certificatesBoolean (default: false)

Note: For security reasons, when TLS_MODE=mtls, outbound client certificates are required and you can't reuse server certificates. When TLS_MODE=disabled, these certificates aren't required.