Skip to content

Instantly share code, notes, and snippets.

@jkrnak
Last active December 16, 2018 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkrnak/f4be0c6216a75c3d3a07adc44dde336d to your computer and use it in GitHub Desktop.
Save jkrnak/f4be0c6216a75c3d3a07adc44dde336d to your computer and use it in GitHub Desktop.
Confd example
# /etc/confd/templates/dotenv.tmpl
PASSWORD={{getv "/client-api/database/password"}}
USER={{getv "/client-api/database/user"}}
MAPS_API_KEY={{getv "/client-api/maps/api/key"}}
# /etc/confd/conf.d/dotenv.toml
[template]
src = "dotenv.tmpl"
dest = "/var/www/client-api/.env"
keys = [
"/client-api",
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment