Console Settings
This page covers settings that manage access and behavior for the Console UI.
You can establish or modify settings by defining:
- an environment variable on the host system prior to starting or restarting the AIStor Server. Refer to your operating system’s documentation for how to define an environment variable.
- a configuration setting using
mc admin config set.
If you define both an environment variable and the similar configuration setting, MinIO AIStor uses the environment variable value.
Some settings have only an environment variable or a configuration setting, but not both.
Each configuration setting controls fundamental MinIO AIStor behavior and functionality. Test configuration changes in a lower environment, such as DEV or QA, before applying to production.
Browser settings
The following settings control behavior for the embedded Console UI.
Enable embedded console
Optional
This setting does not have a configuration variable setting. Use the Environment Variable instead.
Specify off to disable the embedded Console UI.
Animation
Optional
Specify off to disable the animated login screen for the Console UI.
Defaults to on.
This setting does not have a configuration variable setting. Use the Environment Variable instead.
Browser redirect
Optional
Specify whether requests from a web browser automatically redirect to the Console address.
Defaults to true.
This setting does not have a configuration variable setting. Use the Environment Variable instead.
Browser redirect URL
Optional
Specify the Fully Qualified Domain Name (FQDN) the Console UI listens for incoming connections on.
If you want to host the Console UI exclusively from a reverse-proxy service, you must specify the hostname managed by that service.
For example, consider a reverse proxy configured to route https://example.net/minio/ to the Console UI.
You must set this environment variable to match that hostname for the Console to both listen and respond to requests using that hostname.
If you omit this variable, the Console listens and responds to all IP addresses or hostnames associated to the host machine on which the Object Store runs.
This setting does not have a configuration variable setting. Use the Environment Variable instead.
Session duration
Optional
Specify the duration of a browser session for working with the Console UI.
MinIO AIStor supports the following units of time measurement:
s- seconds, “60s”m- minutes, “60m”h- hours, “24h”d- days, “7d”
Defaults to 12h.
This setting does not have a configuration variable setting. Use the Environment Variable instead.
Log query URL
Optional
Specify the URL of a PostgreSQL service to which MinIO AIStor writes Audit logs. The embedded Console UI provides a Log Search tool that allows querying the PostgreSQL service for collected logs.
This setting does not have a configuration variable setting. Use the Environment Variable instead.
Content security policy
Optional
Configure Console UI to generate a Content-Security-Policy header in HTTP responses.
Defaults to default-src 'self' 'unsafe-eval' 'unsafe-inline';
export MINIO_BROWSER_CONTENT_SECURITY_POLICY="default-src 'self' 'unsafe-eval' 'unsafe-inline';"mc admin config set ALIAS browser \
csp_policy="default-src 'self' 'unsafe-eval' 'unsafe-inline';" \
[ARGUMENT=VALUE ...]Strict transport security
Optional
Configure Console UI to generate a Strict-Transport-Security header in HTTP responses.
To generate the header, you must set a duration using either MINIO_BROWSER_HSTS_SECONDS or hsts_seconds.
Other HSTS settings are optional.
The max_age the configured policy remains in effect, in seconds.
Defaults to 0, disabled.
You must configure a non-zero duration to enable the Strict-Transport-Security header.
export MINIO_BROWSER_HSTS_SECONDS=31536000The max_age the configured policy remains in effect, in seconds.
Defaults to 0, disabled.
You must configure a non-zero duration to enable the Strict-Transport-Security header.
mc admin config set ALIAS browser \
hsts_seconds="31536000" \
[ARGUMENT=VALUE ...]Set to on to also apply the configured HSTS policy to all Console UI subdomains.
Defaults to off.
export MINIO_BROWSER_HSTS_INCLUDE_SUB_DOMAINS="on"Set to on to also apply the configured HSTS policy to all Console UI subdomains.
Defaults to off.
mc admin config set ALIAS browser \
hsts_include_subdomains="on" \
hsts_seconds="31536000" \
[ARGUMENT=VALUE ...]Set to on to direct the client browser to add the Console UI domain to its HSTS preload list.
Defaults to off.
export MINIO_BROWSER_HSTS_PRELOAD="on"Set to on to direct the client browser to add the Console UI domain to its HSTS preload list.
Defaults to off.
mc admin config set ALIAS browser \
hsts_preload="on" \
hsts_seconds="31536000" \
[ARGUMENT=VALUE ...]Examples
The following examples show the rendered header for the given configuration settings.
The equivalent environment variables generate the same result.
All examples use a value of 31536000, which is the number of seconds in a calendar year (365 days).
hsts_seconds
mc admin config set ALIAS browser hsts_seconds=31536000Strict-Transport-Security: max-age=31536000hsts_include_subdomains
mc admin config set ALIAS browser hsts_seconds=31536000 hsts_include_subdomains=onStrict-Transport-Security: max-age=31536000; includeSubDomainshsts_preload
mc admin config set ALIAS browser hsts_seconds=31536000 hsts_include_subdomains=on hsts_preload=onStrict-Transport-Security: max-age=31536000; includeSubDomains; preloadReferrer policy
Optional
Configure Console UI to generate a Referrer-Policy header in HTTP responses.
Defaults to strict-origin-when-cross-origin.
export MINIO_BROWSER_REFERRER_POLICY="strict-origin-when-cross-origin"mc admin config set ALIAS browser \
referrer_policy="strict-origin-when-cross-origin" \
[ARGUMENT=VALUE ...]Prometheus settings
The following settings manage how MinIO AIStor interacts with your Prometheus service.
Prometheus URL
Optional
Specify the URL for a Prometheus service configured to scrape MinIO AIStor metrics.
The Console UI populates the Dashboard with cluster metrics using the minio-job Prometheus scraping job.
If you are using a standalone Console UI process, this variable corresponds with CONSOLE_PROMETHEUS_URL.
This setting does not have a configuration variable setting. Use the Environment Variable instead.
Prometheus job ID
Optional
Specify the custom Prometheus job ID used for scraping MinIO AIStor metrics.
MinIO AIStor defaults to minio-job.
If you are using a standalone Console UI process, this variable corresponds with CONSOLE_PROMETHEUS_JOB_ID.
This setting does not have a configuration variable setting. Use the Environment Variable instead.
Prometheus auth token
Optional
Specify the basic auth token the Console should use to connect to a Prometheus service.
For example, a basic auth token you might use could resemble the following:
eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJwcm9tZXRoZXVzIiwic3ViIjoibWluaW8iLCJleHAiOjQ4NTAwMzg0MDJ9.GZCKR3d0FH2TCvNHSd39HaVfSuQVVV0s8glICBDmhT51V6CQ_hw8gTYlKHJmcpR8aHkqiJwCqcYJhaMmqwe00XYIf you are using a standalone Console UI process, this variable corresponds with CONSOLE_PROMETHEUS_AUTH_TOKEN.
This setting does not have a configuration variable setting. Use the Environment Variable instead.