Skip to content

MPS Configuration Options

Environment Variable Default Description
MPS_IMAGE mps-microservice:v1 Only used when using docker-compose.yml. Specifies image to use for MPS
MPS_USE_VAULT true Whether or not the vault should be used
MPS_VAULT_ADDRESS http://vault:8200 Address of where the vault is hosted
MPS_VAULT_TOKEN myroot Token used to access the vault
MPS_SECRETS_PATH secret/data/ Path to where secrets are stored in the vault
MPS_GENERATE_CERTS true Enables/Disables generation of self signed certificates based on MPS_COMMON_NAME
MPS_COMMON_NAME localhost Development system's IP address.
Note: For this guide, you cannot use localhost because the managed device would be unable to reach the MPS and RPS servers.
MPS_PORT 4433
MPS_WEB_PORT 3000
MPS_WEB_ADMIN_USER n/a Specifies the username for API authentication
MPS_WEB_ADMIN_PASSWORD n/a Specifies the password for API authentication
MPS_HTTPS true Specifies whether or not to enable https
MPS_TLS_OFFLOAD false
MPS_LOG_LEVEL info Controls the level of logging provided in the service. Options are (in order of increasing detail): error, warn, info, verbose, debug, and silly.
MPS_JWT_SECRET n/a Secret used for generating a JWT Token. IMPORTANT: This must match the secret in your Kong.yaml file for the jwt plugin configuration.
MPS_JWT_ISSUER 9EmRJTbIiIb4bIeSsmgcWIjrR6HyETqc The issuer that will be populated in the token. This is a not considered a secret. IMPORTANT: This must match the key: property in the Kong.yaml file for the jwt plugin configuration.
MPS_JWT_EXPIRATION 1440 The default expiration in minutes for the JWT Token. Default is 24 hours.