From 55627d4ec4b8ef1696248d7cc7851ae04512b5a2 Mon Sep 17 00:00:00 2001 From: Rodrigo Coutinho Date: Thu, 30 Nov 2017 13:23:25 -0200 Subject: Improve readme --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ca8c2df..6489221 100644 --- a/README.md +++ b/README.md @@ -22,13 +22,20 @@ If [available in Hex](https://hex.pm/docs/publish), the package can be installed end ``` -## Configuration with env vars -Insert this in your Phoenix configuration files. Eg: `config.exs` +## Configuration +Insert this in your configuration files. Eg: `config.exs` + +```elixir +config :powerdnsex, url: "localhost:8081", + token: "sometoken" +``` + +You can also use ENV vars to configure PowerDNSex. ```elixir config :powerdnsex, url: {:system, "POWERDNS_URL"}, token: {:system, "POWERDNS_TOKEN"} ``` -Make sure you set those envinronment variables. +Make sure you set those environment variables. ## Example usage @@ -101,3 +108,4 @@ record = %{ rrset = PowerDNSex.show_record("example.com", record) res = PowerDNSex.delete_record(zone, rrset) ``` + -- cgit v1.2.3