Skip to content

How to pass env values to apiman.properties ( apiman UI ) & conf-es.config ( vertx gateway ) #1663

Answered by msavy
iamakashk asked this question in Help
Discussion options

You must be logged in to vote

Have you seen the docker-compose setup here? apiman/apiman-docker#46 -- it might be useful inspiration for you.

If you want to refer to an environment variable in your Apiman Vert.x Gateway config file, you should just be able to do:

"something" : "${MY_ENV_VAR}" and it should pick it up.

You can even put a default value. For example ${MY_ENV_VAR:Apiman is cool}

Here's the docs for this - https://www.apiman.io/apiman-docs/installation-guide/2.1.2.Final/vertx/config-guide.html#_variables

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by msavy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants