elstat/config/config.exs

28 lines
593 B
Elixir
Raw Normal View History

2018-06-10 21:02:34 +00:00
use Mix.Config
2018-06-10 21:56:59 +00:00
config :elstat,
2018-06-11 07:24:16 +00:00
port: 8069,
# which services will be managed by elstat?
# this follows a service spec
# the example here is for elixire
2018-06-11 20:42:40 +00:00
services: %{
elixire: %{
description: "the backend of elixi.re",
2018-06-11 07:24:16 +00:00
adapter: Elstat.Adapter.Elixire,
adapter_opts: %{
base_url: "https://elixi.re",
},
# every 10 seconds
poll: 10,
},
2018-06-11 20:42:40 +00:00
genserver: %{
description: "genserver, elixire main server",
2018-06-11 07:24:16 +00:00
adapter: Elstat.Adapter.Ping,
adapter_opts: %{
address: "192.168.1.1",
},
poll: 15,
},
2018-06-11 20:42:40 +00:00
}