Configure RedisInsight
You can configure RedisInsight with system environment variables.
To configure RedisInsight with environment variables:
Follow the instructions to set environment variables for your operating system:
Set the environment variables.
Restart RedisInsight.
RedisInsight environment variables
The following environment variables can be set to configure RedisInsight:
RIPORT
Description: Which port should RedisInsight listen on.
Type: Number
Default: 8001
RIHOST
Description: Which host should RedisInsight bind to.
Type: String
Default: "0.0.0.0"
on Docker and "127.0.0.1"
on Windows, Mac, and Linux.
RIHOMEDIR
Description: Sets the storage directory where RedisInsight stores application data (such as local database, log files and snapshot files).
Type: String
Default: "~/.redisinsight"
on desktop, "/db"
on docker.
RILOGDIR
Description: Sets the logging storage directory where RedisInsight stores application logs.
Type: String
Default: "~/.redisinsight"
on desktop, "/db"
on docker.
RILOGLEVEL
Description: Configures the log level of the application. Possible values are - "DEBUG"
, "INFO"
, "WARNING"
, "ERROR
" and "CRITICAL"
.
Type: String
Default: "WARNING"
RITRUSTEDORIGINS
Description: Configures the trusted origins of the application.
Type: String
Default: ""
Examples: "https://my-website.com,https://my-another-website.com,http://my-third-website.com"
RIPROXYENABLE
Description: Enables Subpath Proxy for the application.
Type: Bool
Default: False
RIPROXYPATH
Description: Configures Subpath Proxy path for the application.
Type: String
Default: ""
Examples: "/redisinsight"
, "/myapp"
RIPROXYPREFIX
Description: Sets the Subpath proxy prefix HTTP header field name for the application. The application uses the value from this HTTP header key as proxy subpath.
Type: String
Default: "X-Forwarded-Prefix"
Examples: "X-Forwarded-Prefix"
, "X-Forwarded-Path"
RIAUTHPROMPT
Description: Enables authentication prompt that asks for authentication before opening an instance or when the user is idle.
Type: Bool
Default: false
RIAUTHTIMER
Description: Idle timer value for authentication prompt, in minutes.
Type: Bool
Default: 30
REDISINSIGHT_PORT (DEPRECATED)
Description: Which port should RedisInsight listen on.
Type: Number
Default: 8001
Deprecated in: v1.9.0
REDISINSIGHT_HOST (DEPRECATED)
Description: Which host should RedisInsight bind to.
Type: String
Default: "0.0.0.0"
Deprecated in: v1.9.0
REDISINSIGHT_HOME_DIR (DEPRECATED)
Description: Sets the storage directory where RedisInsight stores application data (such as local database, log files and snapshot files).
Type: String
Default: "~/.redisinsight"
on desktop, "/db"
on docker.
Deprecated in: v1.9.0
LOG_DIR (DEPRECATED)
Description: Sets the logging storage directory where RedisInsight stores application logs.
Type: String
Default: "~/.redisinsight"
on desktop, "/db"
on docker.