Open vttranlina opened 1 year ago
It looks imposible, From the document
Nginx will hide all environment variables by default https://apisix.apache.org/docs/apisix/external-plugin/#when-managing-by-apisix-the-runner-cant-access-my-environment-variable
Issue description
As I know the plugin is based on the Spring framework. I have configured below in the
application.yaml
:Now, I want to set
REDIS_URL
by the docker environment. Eg:My trace
java -jar my_plugin.jar
(run it directly by hand, not viaext-plugin.cmd
Environment
ext-plugin: path_for_test: /tmp/runner.sock cmd: ['java', '-jar', '-Xmx1g', '-Xms1g', '/usr/local/apisix/token_revoker_plugin.jar']