Mender Gateway uses a JSON file for configuring the proxy and mTLS settings.
The configuration is loaded from the file /etc/mender/mender-gateway.conf
by default,
unless otherwise specified by the --config
command line argument.
This section provides a reference for the configuration variables.
{
"Features": {
"ArtifactsProxy": {
"Enabled": true,
"GatewayURL": "https://gateway.mender.io",
"DomainWhitelist": ["s3.amazonaws.com", "s3.my-min.io"],
"ArtifactsCache": {
"Enabled": true,
"Path": "/var/cache/mender-gateway",
"SignatureSecret": "KDbQ+Z9asYtPdRQoakM5lGs6xgkWyNx4",
"LinkExpireDuration": "30m"
}
},
"mTLS": {
"Enabled": true,
"CACertificate": "/var/lib/mender/ca-cert.pem",
"MenderUsername": "gateway@mender.io",
"MenderPassword": "password123",
"BlacklistPath": "/var/lib/mender/mtls-blacklist.txt"
},
"DeviceSystem": {
"Enabled": false,
"SystemID": "REPLACE_WITH_YOUR_UNIQUE_SYSTEM_ID",
"DefaultInventory": [
{
"Name": "region",
"Value": "eu"
}
]
}
},
"HTTP": {
"Enabled": false,
"Listen": ":80"
},
"HTTPS": {
"Enabled": true,
"Listen": ":443",
"MinimumTLSVersion": "1.2",
"ServerCertificate": "/var/lib/mender/server-cert.pem",
"ServerKey": "/var/lib/mender/server-pkey.pem"
},
"UpstreamServer": {
"URL": "https://hosted.mender.io",
"CACertificate": "/etc/ssl/cert.pem",
"InsecureSkipVerify": false
}
}
Hosted Mender is available in multiple regions to connect to. Make sure you select your desired one before proceeding.
Starting from Mender Gateway version 1.3.0
, configurations can be overwritten using environment variables.
In the description below, the environment variable names are provided in the parenthesis.
ARTIFACTS_PROXY_ENABLED
)ARTIFACTS_PROXY_GATEWAY_URL
)ARTIFACTS_PROXY_DOMAIN_WHITELIST
)ARTIFACTS_PROXY_CACHE_ENABLED
)ARTIFACTS_PROXY_CACHE_PATH
)ARTIFACTS_PROXY_CACHE_SECRET
)
ARTIFACTS_PROXY_CACHE_LINK_EXPIRE_DURATION
)MTLS_ENABLED
)MTLS_CA_CERTIFICATE
)MTLS_BLACKLIST_PATH
)MTLS_MENDER_USERNAME
)MTLS_MENDER_PASSWORD
)Mender Enterprise Only: Using RBAC you can create a new user with a dedicated role to the user access scope to the preauthorization API endpoint for the gateway user.
This feature requires Mender Gateway version 1.1.0
DEVICE_SYSTEM_ENABLED
)DEVICE_SYSTEM_ID
)mender_gateway_system_id
in the reported inventory data.
HTTP_ENABLED
)HTTP_LISTEN
)HTTPS_ENABLED
)HTTPS_LISTEN
)HTTPS_MINMUM_TLS_VERSION
)
["1.0", "1.1", "1.2", "1.3"]
.1.1.0
.
HTTPS_SERVER_CERTIFICATE
)HTTPS_SERVER_KEY
)UPSTREAM_SERVER
)UPSTREAM_SERVER_CA_CERTIFICATE
)1.3.0
.
UPSTREAM_SERVER_INSECURE_SKIP_VERIFY
)© 2024 Northern.tech AS