Storing Configuration as File References

Another popular option is git2consul which mirrors the contents of a Git repository to Consul’s key/value store.

You can setup a Git repository that contains files like application.yml, hello-world-test.json, etc., and the contents of these files will be cloned to Consul.

In this case, each key in Consul represents a file with an extension, for example /config/application.yml, and you must configure the FILE format:

application.yml

  1. consul:
  2. client:
  3. config:
  4. format: FILE