Add env variables to the production parity files

pull/832/head
Andrew Cravenho 6 years ago committed by Felipe Renan
parent 3e5896396a
commit 9892d1bd17
  1. 10
      apps/explorer/config/prod/parity.exs
  2. 8
      apps/indexer/config/prod/parity.exs

@ -5,11 +5,11 @@ config :explorer,
transport: EthereumJSONRPC.HTTP, transport: EthereumJSONRPC.HTTP,
transport_options: [ transport_options: [
http: EthereumJSONRPC.HTTP.HTTPoison, http: EthereumJSONRPC.HTTP.HTTPoison,
url: "https://sokol.poa.network", url: System.get_env("ETHEREUM_URL") || "https://sokol.poa.network",
method_to_url: [ method_to_url: [
eth_call: "https://sokol-trace.poa.network", eth_call: System.get_env("TRACE_URL") || "https://sokol-trace.poa.network",
eth_getBalance: "https://sokol-trace.poa.network", eth_getBalance: System.get_env("TRACE_URL") || "https://sokol-trace.poa.network",
trace_replayTransaction: "https://sokol-trace.poa.network" trace_replayTransaction: System.get_env("TRACE_URL") || "https://sokol-trace.poa.network"
], ],
http_options: [recv_timeout: 60_000, timeout: 60_000, hackney: [pool: :ethereum_jsonrpc]] http_options: [recv_timeout: 60_000, timeout: 60_000, hackney: [pool: :ethereum_jsonrpc]]
], ],
@ -19,7 +19,7 @@ config :explorer,
transport: EthereumJSONRPC.WebSocket, transport: EthereumJSONRPC.WebSocket,
transport_options: [ transport_options: [
web_socket: EthereumJSONRPC.WebSocket.WebSocketClient, web_socket: EthereumJSONRPC.WebSocket.WebSocketClient,
url: "wss://sokol-ws.poa.network/ws" url: System.get_env("WS_URL") || "wss://sokol-ws.poa.network/ws"
], ],
variant: EthereumJSONRPC.Parity variant: EthereumJSONRPC.Parity
] ]

@ -6,10 +6,10 @@ config :indexer,
transport: EthereumJSONRPC.HTTP, transport: EthereumJSONRPC.HTTP,
transport_options: [ transport_options: [
http: EthereumJSONRPC.HTTP.HTTPoison, http: EthereumJSONRPC.HTTP.HTTPoison,
url: "https://sokol.poa.network", url: System.get_env("ETHEREUM_URL") || "https://sokol.poa.network",
method_to_url: [ method_to_url: [
eth_getBalance: "https://sokol-trace.poa.network", eth_getBalance: System.get_env("TRACE_URL") || "https://sokol-trace.poa.network",
trace_replayTransaction: "https://sokol-trace.poa.network" trace_replayTransaction: System.get_env("TRACE_URL") || "https://sokol-trace.poa.network"
], ],
http_options: [recv_timeout: 60_000, timeout: 60_000, hackney: [pool: :ethereum_jsonrpc]] http_options: [recv_timeout: 60_000, timeout: 60_000, hackney: [pool: :ethereum_jsonrpc]]
], ],
@ -19,6 +19,6 @@ config :indexer,
transport: EthereumJSONRPC.WebSocket, transport: EthereumJSONRPC.WebSocket,
transport_options: [ transport_options: [
web_socket: EthereumJSONRPC.WebSocket.WebSocketClient, web_socket: EthereumJSONRPC.WebSocket.WebSocketClient,
url: "wss://sokol-ws.poa.network/ws" url: System.get_env("WS_URL") || "wss://sokol-ws.poa.network/ws"
] ]
] ]

Loading…
Cancel
Save