From c723cba0baf5aac4c470d75171f074d247caa64c Mon Sep 17 00:00:00 2001 From: Weifeng Wang Date: Thu, 29 Feb 2024 21:52:01 +0800 Subject: [PATCH] docs(fix): Environment variables in configuration files have default values (#3055) Signed-off-by: Weifeng Wang --- .../reference-configuration-parameters/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sources/configure-server/reference-configuration-parameters/index.md b/docs/sources/configure-server/reference-configuration-parameters/index.md index 70f27a8a07..bdf74835b7 100644 --- a/docs/sources/configure-server/reference-configuration-parameters/index.md +++ b/docs/sources/configure-server/reference-configuration-parameters/index.md @@ -53,7 +53,7 @@ Each variable reference is replaced at startup by the value of the environment v The replacement is case-sensitive and occurs before the YAML file is parsed. References to undefined variables are replaced by empty strings unless you specify a default value or custom error text. -To specify a default value, use `${VAR:default_value}`, +To specify a default value, use `${VAR:-default_value}`, where `default_value` is the value to use if the environment variable is undefined. ## Configuration parameters