kayx23 opened a new issue, #10530:
URL: https://github.com/apache/apisix/issues/10530

   ### Current Behavior
   
   From the 
[tests](https://github.com/apache/apisix/blob/master/t/cli/test_standalone.sh) 
it seems that `apisix.yaml` supports the injection of environment variables.
   
   Hence I previously opened https://github.com/apache/apisix/issues/10509 for 
doc improvement. However, it's been noted from manual testing that env var in 
`apisix.yaml` did not get resolved when deploying APISIX in standalone mode in 
Docker.
   
   ### Expected Behavior
   
   _No response_
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   ```shell
   docker run -d \
     --name apisix-standalone \
     -p9080:9080 -p9443:9443 -p9090:9092 \
     -e APISIX_STAND_ALONE=true \
     -e UPSTREAM_NODE_HTTPBIN="httpbin.org" \
     apache/apisix
   ```
   
   ```shell
   docker exec apisix-standalone /bin/sh -c "echo '
   routes:
     -
       id: example-route-to-httpbin
       uri: /anything/test
       upstream:
         nodes:
           "${{UPSTREAM_NODE_HTTPBIN}}": 1
         type: roundrobin
   #END
   ' > /usr/local/apisix/conf/apisix.yaml"
   ```
   
   Send a request to the route, if should not go through. In logs you see 
`failed to resolve variables`:
   
   
![image](https://github.com/apache/apisix/assets/39619599/5d5ba2f7-1f39-4040-9426-0a4f6f430013)
   
   
   ### Environment
   
   APISIX version 3.6.0 Docker image
   


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