forked from austintgriffith/poa-blockscout-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev.exs
34 lines (28 loc) · 785 Bytes
/
dev.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
use Mix.Config
#break cache
# Configure your database
config :explorer, Explorer.Repo,
adapter: Ecto.Adapters.Postgres,
database: "explorer_dev",
hostname: "postgres",
username: "postgres",
password: "blockscout",
pool_size: 20,
pool_timeout: 60_000,
timeout: 80_000
config :logger, :explorer,
level: :debug,
path: Path.absname("logs/dev/explorer.log")
import_config "dev.secret.exs"
variant =
if is_nil(System.get_env("ETHEREUM_JSONRPC_VARIANT")) do
"parity"
else
System.get_env("ETHEREUM_JSONRPC_VARIANT")
|> String.split(".")
|> List.last()
|> String.downcase()
end
# Import variant specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "dev/#{variant}.exs"