summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorLindolfo 'Lorn' Rodrigues <lorn@lornlab.org>2020-03-17 19:30:34 -0300
committerLindolfo 'Lorn' Rodrigues <lorn@lornlab.org>2020-03-19 23:29:50 -0300
commit6589586f985b466194a6553c50ab3f7419a13b7f (patch)
treecdb94939b65877c420abd60a26f3eab595b9aae6 /config
parentMerge pull request #14 from locaweb/fix-docs (diff)
Timeout option
Now, you need to pass the timeout for the PowerDNS API in seconds We need to add the timeout to the GenServer.call function
Diffstat (limited to 'config')
-rw-r--r--config/config.exs2
-rw-r--r--config/test.exs3
2 files changed, 4 insertions, 1 deletions
diff --git a/config/config.exs b/config/config.exs
index 8233fe9..97ecef9 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -1,3 +1,5 @@
use Mix.Config
+config :powerdnsex, timeout: 2
+
import_config "#{Mix.env()}.exs"
diff --git a/config/test.exs b/config/test.exs
index eedc0c7..7f4d787 100644
--- a/config/test.exs
+++ b/config/test.exs
@@ -1,4 +1,5 @@
use Mix.Config
-config :powerdnsex, url: "https://powerdns.example.com"
+config :powerdnsex, url: "http://172.20.0.1:3005"
config :powerdnsex, token: "example"
+config :powerdnsex, timeout: 300