Skip to main content

Environment Variables

A present environment variable overrides YAML even when its value is empty.

  • Required strings overridden to empty fail normal config validation.
  • Optional strings use the field's empty-value semantics; credentials can be explicitly cleared.
  • An empty or whitespace-only integer variable means 0.
  • A non-empty invalid integer is a configuration error; Dash does not keep the YAML value.
  • --no-redis and dash migrate do not read REDIS_* overrides.

App

VariableField
APP_NAMEapp.name
APP_ENVapp.env
APP_DASH_IPapp.dash_ip
APP_LISTENapp.listen
APP_GRPC_PORTapp.grpc_port
APP_PUBLIC_URLapp.public_url
APP_TIMEZONEapp.timezone
APP_LANGUAGEapp.language
APP_LOG_LEVELapp.log_level
APP_LOG_FORMATapp.log_format
APP_NODE_OFFLINE_THRESHOLDapp.node_offline_threshold

Database

VariableField
DB_DRIVERdatabase.driver
DB_HOSTdatabase.host
DB_PORTdatabase.port
DB_USERdatabase.user
DB_PASSWORDdatabase.password
DB_NAMEdatabase.name
DB_SSLMODEdatabase.sslmode
DB_MAX_OPEN_CONNSdatabase.max_open_conns
DB_MAX_IDLE_CONNSdatabase.max_idle_conns
DB_CONN_MAX_LIFETIMEdatabase.conn_max_lifetime
DB_RETENTION_DAYSdatabase.retention_days
DB_TRAFFIC_RETENTION_DAYSdatabase.traffic_retention_days

Pool values must be non-negative. A positive DB_MAX_OPEN_CONNS must be at least DB_MAX_IDLE_CONNS.

Redis

VariableField
REDIS_ADDRredis.addr
REDIS_USERNAMEredis.username
REDIS_PASSWORDredis.password
REDIS_DBredis.db
REDIS_POOL_SIZEredis.pool_size
REDIS_MIN_IDLE_CONNSredis.min_idle_conns
REDIS_DIAL_TIMEOUTredis.dial_timeout
REDIS_READ_TIMEOUTredis.read_timeout
REDIS_WRITE_TIMEOUTredis.write_timeout

Redis pool values must be non-negative. REDIS_POOL_SIZE=0 requires REDIS_MIN_IDLE_CONNS=0; a positive pool size must be at least the minimum idle count.

Auth

VariableDescription
monitor_dash_pwdAdmin password; at least 8 visible ASCII characters with no whitespace

Runtime Root

VariableDescription
DASH_HOMEStable Dash install root used for config, themes, install_id, notification key, and update state

Release systemd units set:

DASH_HOME=/opt/Ithiltir-dash
monitor_dash_pwd=<password entered during install>

Node

VariableDescription
NODE_HOSTLocal mode listen address
NODE_PORTLocal mode and Push debug port
ITHILTIR_NODE_REPORT_CONFIGOverride report.yaml path
ITHILTIR_NODE_LOCAL_PAGE_DIROverride local page directory
ITHILTIR_NODE_RUNNERSet to 1 by the Windows runner to enable staged updates