diff --git a/apps/explorer/config/prod/parity.exs b/apps/explorer/config/prod/parity.exs index 3b2a6b9cd9..50bc221517 100644 --- a/apps/explorer/config/prod/parity.exs +++ b/apps/explorer/config/prod/parity.exs @@ -5,11 +5,11 @@ config :explorer, transport: EthereumJSONRPC.HTTP, transport_options: [ http: EthereumJSONRPC.HTTP.HTTPoison, - url: "https://sokol.poa.network", + url: System.get_env("ETHEREUM_URL") || "https://sokol.poa.network", method_to_url: [ - eth_call: "https://sokol-trace.poa.network", - eth_getBalance: "https://sokol-trace.poa.network", - trace_replayTransaction: "https://sokol-trace.poa.network" + eth_call: System.get_env("TRACE_URL") || "https://sokol-trace.poa.network", + eth_getBalance: System.get_env("TRACE_URL") || "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]] ], @@ -19,7 +19,7 @@ config :explorer, transport: EthereumJSONRPC.WebSocket, transport_options: [ 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 ] diff --git a/apps/indexer/config/prod/parity.exs b/apps/indexer/config/prod/parity.exs index f20154e6b7..42e70e3ba8 100644 --- a/apps/indexer/config/prod/parity.exs +++ b/apps/indexer/config/prod/parity.exs @@ -6,10 +6,10 @@ config :indexer, transport: EthereumJSONRPC.HTTP, transport_options: [ http: EthereumJSONRPC.HTTP.HTTPoison, - url: "https://sokol.poa.network", + url: System.get_env("ETHEREUM_URL") || "https://sokol.poa.network", method_to_url: [ - eth_getBalance: "https://sokol-trace.poa.network", - trace_replayTransaction: "https://sokol-trace.poa.network" + eth_getBalance: System.get_env("TRACE_URL") || "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]] ], @@ -19,6 +19,6 @@ config :indexer, transport: EthereumJSONRPC.WebSocket, transport_options: [ web_socket: EthereumJSONRPC.WebSocket.WebSocketClient, - url: "wss://sokol-ws.poa.network/ws" + url: System.get_env("WS_URL") || "wss://sokol-ws.poa.network/ws" ] ]