-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to read environment variables from yaml configuration files? #5244
Comments
At present, we use Python jinja2 to render config.yaml, then we can indirectly set APISIX through environment variables. |
Is it enough to call the function apisix_yaml = apisix_yaml_new
apisix_yaml_ctime = last_change_time Like that: local ok, err = resolve_conf_var(apisix_yaml)
if not ok then
return nil, err
end
local ok, err = resolve_conf_var(apisix_yaml_ctime)
if not ok then
return nil, err
end |
You can try it. |
I want to try to implement this function, can it be assigned to me? |
Discussed in #5222
Originally posted by abbluiz October 13, 2021
I want to use different configuration depending on my environment on some YAML configuration files, specially in
conf/apisix.yaml
in stand-alone mode. Is it possible to read from environment variable like${VAR}
inside YAML file?The text was updated successfully, but these errors were encountered: