From 54538a3c1ce997a5be408b5c647f3cfe8a360907 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Tue, 2 Jul 2024 19:11:42 +0300 Subject: [PATCH] fix: Apply Ecto set explicit ssl_opts: [verify: :verify_none] to all prod repos (#10369) --- apps/explorer/config/prod.exs | 48 +++++++++++++++++++++++------------ 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/apps/explorer/config/prod.exs b/apps/explorer/config/prod.exs index 9f69dbd54b..a7166e19aa 100644 --- a/apps/explorer/config/prod.exs +++ b/apps/explorer/config/prod.exs @@ -4,69 +4,85 @@ import Config config :explorer, Explorer.Repo, prepare: :unnamed, timeout: :timer.seconds(60), - migration_lock: nil + migration_lock: nil, + ssl_opts: [verify: :verify_none] # Configures API the database config :explorer, Explorer.Repo.Replica1, prepare: :unnamed, - timeout: :timer.seconds(60) + timeout: :timer.seconds(60), + ssl_opts: [verify: :verify_none] # Configures Account database config :explorer, Explorer.Repo.Account, prepare: :unnamed, - timeout: :timer.seconds(60) + timeout: :timer.seconds(60), + ssl_opts: [verify: :verify_none] config :explorer, Explorer.Repo.Optimism, prepare: :unnamed, - timeout: :timer.seconds(60) + timeout: :timer.seconds(60), + ssl_opts: [verify: :verify_none] config :explorer, Explorer.Repo.PolygonEdge, prepare: :unnamed, - timeout: :timer.seconds(60) + timeout: :timer.seconds(60), + ssl_opts: [verify: :verify_none] config :explorer, Explorer.Repo.PolygonZkevm, prepare: :unnamed, - timeout: :timer.seconds(60) + timeout: :timer.seconds(60), + ssl_opts: [verify: :verify_none] config :explorer, Explorer.Repo.ZkSync, prepare: :unnamed, - timeout: :timer.seconds(60) + timeout: :timer.seconds(60), + ssl_opts: [verify: :verify_none] config :explorer, Explorer.Repo.RSK, prepare: :unnamed, - timeout: :timer.seconds(60) + timeout: :timer.seconds(60), + ssl_opts: [verify: :verify_none] config :explorer, Explorer.Repo.Shibarium, prepare: :unnamed, - timeout: :timer.seconds(60) + timeout: :timer.seconds(60), + ssl_opts: [verify: :verify_none] config :explorer, Explorer.Repo.Suave, prepare: :unnamed, - timeout: :timer.seconds(60) + timeout: :timer.seconds(60), + ssl_opts: [verify: :verify_none] config :explorer, Explorer.Repo.Beacon, prepare: :unnamed, - timeout: :timer.seconds(60) + timeout: :timer.seconds(60), + ssl_opts: [verify: :verify_none] config :explorer, Explorer.Repo.Arbitrum, prepare: :unnamed, - timeout: :timer.seconds(60) + timeout: :timer.seconds(60), + ssl_opts: [verify: :verify_none] config :explorer, Explorer.Repo.BridgedTokens, prepare: :unnamed, - timeout: :timer.seconds(60) + timeout: :timer.seconds(60), + ssl_opts: [verify: :verify_none] config :explorer, Explorer.Repo.Filecoin, prepare: :unnamed, - timeout: :timer.seconds(60) + timeout: :timer.seconds(60), + ssl_opts: [verify: :verify_none] config :explorer, Explorer.Repo.Stability, prepare: :unnamed, - timeout: :timer.seconds(60) + timeout: :timer.seconds(60), + ssl_opts: [verify: :verify_none] config :explorer, Explorer.Repo.Mud, prepare: :unnamed, - timeout: :timer.seconds(60) + timeout: :timer.seconds(60), + ssl_opts: [verify: :verify_none] config :explorer, Explorer.Tracer, env: "production", disabled?: true