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

   I'm also having the same issue using the `3.7.0` image and none of the 
following worked:
   
   - $ENV://ENV_KEY [as specified 
here](https://apisix.apache.org/docs/apisix/terminology/secret/)
   - ${{ENV_KEY}}
   - ${{ENV_KEY:=}}
   - ${ENV_KEY}
   
   in all cases, I have made sure that the variable is loaded into the 
container either by using an outside env set (`docker run -e` or with 
`docker-compose` environment variables) to make sure that the environment 
variables where set.
   
   From what I gathered from the logs there is the following error:
   ```
   [lua] config_yaml.lua:112: failed: failed to resolve variables:failed to 
handle configuration: can't find environment variable REMOTE_API_HOST, context: 
ngx.timer
   ```
   which indicates that even though the environment variable is set it needs 
some way to be loaded or be accessed through nginx explicitly


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