hanqingwu commented on issue #10530:
URL: https://github.com/apache/apisix/issues/10530#issuecomment-1869939834

   @kayx23 
    i have trace this bug . so i find root cause is  nginx ,
    By default, nginx removes all environment variables inherited from its 
parent process except the TZ variable. This directive allows preserving some of 
the inherited variables, changing their values, or creating new environment 
variables. 
   The answer in the http://nginx.org/en/docs/ngx_core_module.html#env
   so you need modify nginx.conf in  apisix/cli/ngx_tpl.lua  then add  "env 
UPSTREAM_NODE_HTTPBIN;'"
   
![image](https://github.com/apache/apisix/assets/7521141/efc8d30d-134a-4cf4-be4a-46bf1a6990ef)
   
   then  update apisix.yaml  will work 
   
![image](https://github.com/apache/apisix/assets/7521141/34d1f50f-f5ae-40fd-9f17-862219d3b144)
   
   some reference: 
   https://github.com/openresty/openresty/issues/171
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to