in apisix/runner/server/config.py [0:0]
def _get_env_config(config: str):
"""
get the configuration in the local environment variable
:param config:
:return:
"""
if isinstance(config, str) and config.find("$env.") != -1:
env_name = config.replace("$env.", "")
return os.getenv(env_name)
return config