1

In light-4j, is there a way to use environment variables in configuration files (like cors.yml, consul.yml, client.yml) similar to docker-compose files?

Steve Hu
  • 358
  • 2
  • 10

1 Answers1

1

Yes. Take a look at this document

https://doc.networknt.com/concern/config/#environment-external-config-injection

You can use placeholders in the config files and use environment variables or values.yml to overwrite the variables in any config file.

Steve Hu
  • 358
  • 2
  • 10