Use Envplate for trivial configuration templating
masterEnvplate (ep) is a tool for performing trivial templating in configuration files using environment variables. It parses files matching provided glob patterns and replaces variable references with values from the environment or provided default values. The replacement happens inline, meaning the original files are modified.
Variable Syntax:
${key}: Replaces with the value of the environment variablekey.${key:-default value}: Replaces with the value ofkey, or usesdefault valueif the variable is not set.
Note: If the supplied glob pattern does not resolve to at least one file, ep will return an error.
# No specific code example provided for the core concept, but syntax is:
${key}
${key:-default value}