After set a variable by set $name value, i can reference it like $name,
but when i export a OS Environment Variale by env name_from_env, like Core functionality said,
and i am sure the name_from_env is valid which defined form nginx’s
parent process.
But, my friends, how to reference it ?
$name_from_env or ${name_from_env} or %name_from_env% didn’t work what
i’ve tried before.
After set a variable by set $name value, i can reference it like $name,
but when i export a OS Environment Variale by env name_from_env, like Core functionality said,
and i am sure the name_from_env is valid which defined form nginx’s
parent process.
But, my friends, how to reference it ?
You can read system environment variables with ngx_lua enabled in your
nginx build: Lua | NGINX