Evaluating running Tyk on docker, w/ some customer JSVM middleware plugins. I’d like to be able to launch the gateway containers w/ a docker env var such as "-e “MYVAR=MYVAL”… and subsequently would like to be able to access the value of MYVAR from within a middleware JS plugin
I haven’t tried nor do I know the performance implications but you may be able to use os.Getenv() to retrieve environment variables. The gateway is open source, so you can modify it and build a custom version for your use case.
TykGetKeyData can be used as a template to write your custom JS function. Hope this helps.