shreemaan-abhishek commented on issue #10530:
URL: https://github.com/apache/apisix/issues/10530#issuecomment-1876222842

   > However, looks like Apisix will resolve only variable that were present in 
apisix.yml when Apisix is started. The variables that are defined in docker 
compose, but added to apisix.yml after Apisix is started, will be somehow 
ignored after the config reload task.
   
   Yes. You need to `apisix reload` after the config change. Because nginx 
doesn't inherit all the environment variables.
   
   When apisix starts in standalone mode, it adds the env vars from 
`apisix.yaml` to the `nginx.conf`. And when you add new env vars in the 
`apisix.yaml` config, the they are added in `nginx.conf` only after `apisix 
reload` (or equivalent).


-- 
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