Skip to content

Instantly share code, notes, and snippets.

@jkrnak
Last active Dec 16, 2018
Embed
What would you like to do?
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