fix: Apply Ecto set explicit ssl_opts: [verify: :verify_none] to all prod repos (#10369)

pull/10372/head
Victor Baranov 5 months ago committed by GitHub
parent 1015bfd0a4
commit 54538a3c1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 48
      apps/explorer/config/prod.exs

@ -4,69 +4,85 @@ import Config
config :explorer, Explorer.Repo, config :explorer, Explorer.Repo,
prepare: :unnamed, prepare: :unnamed,
timeout: :timer.seconds(60), timeout: :timer.seconds(60),
migration_lock: nil migration_lock: nil,
ssl_opts: [verify: :verify_none]
# Configures API the database # Configures API the database
config :explorer, Explorer.Repo.Replica1, config :explorer, Explorer.Repo.Replica1,
prepare: :unnamed, prepare: :unnamed,
timeout: :timer.seconds(60) timeout: :timer.seconds(60),
ssl_opts: [verify: :verify_none]
# Configures Account database # Configures Account database
config :explorer, Explorer.Repo.Account, config :explorer, Explorer.Repo.Account,
prepare: :unnamed, prepare: :unnamed,
timeout: :timer.seconds(60) timeout: :timer.seconds(60),
ssl_opts: [verify: :verify_none]
config :explorer, Explorer.Repo.Optimism, config :explorer, Explorer.Repo.Optimism,
prepare: :unnamed, prepare: :unnamed,
timeout: :timer.seconds(60) timeout: :timer.seconds(60),
ssl_opts: [verify: :verify_none]
config :explorer, Explorer.Repo.PolygonEdge, config :explorer, Explorer.Repo.PolygonEdge,
prepare: :unnamed, prepare: :unnamed,
timeout: :timer.seconds(60) timeout: :timer.seconds(60),
ssl_opts: [verify: :verify_none]
config :explorer, Explorer.Repo.PolygonZkevm, config :explorer, Explorer.Repo.PolygonZkevm,
prepare: :unnamed, prepare: :unnamed,
timeout: :timer.seconds(60) timeout: :timer.seconds(60),
ssl_opts: [verify: :verify_none]
config :explorer, Explorer.Repo.ZkSync, config :explorer, Explorer.Repo.ZkSync,
prepare: :unnamed, prepare: :unnamed,
timeout: :timer.seconds(60) timeout: :timer.seconds(60),
ssl_opts: [verify: :verify_none]
config :explorer, Explorer.Repo.RSK, config :explorer, Explorer.Repo.RSK,
prepare: :unnamed, prepare: :unnamed,
timeout: :timer.seconds(60) timeout: :timer.seconds(60),
ssl_opts: [verify: :verify_none]
config :explorer, Explorer.Repo.Shibarium, config :explorer, Explorer.Repo.Shibarium,
prepare: :unnamed, prepare: :unnamed,
timeout: :timer.seconds(60) timeout: :timer.seconds(60),
ssl_opts: [verify: :verify_none]
config :explorer, Explorer.Repo.Suave, config :explorer, Explorer.Repo.Suave,
prepare: :unnamed, prepare: :unnamed,
timeout: :timer.seconds(60) timeout: :timer.seconds(60),
ssl_opts: [verify: :verify_none]
config :explorer, Explorer.Repo.Beacon, config :explorer, Explorer.Repo.Beacon,
prepare: :unnamed, prepare: :unnamed,
timeout: :timer.seconds(60) timeout: :timer.seconds(60),
ssl_opts: [verify: :verify_none]
config :explorer, Explorer.Repo.Arbitrum, config :explorer, Explorer.Repo.Arbitrum,
prepare: :unnamed, prepare: :unnamed,
timeout: :timer.seconds(60) timeout: :timer.seconds(60),
ssl_opts: [verify: :verify_none]
config :explorer, Explorer.Repo.BridgedTokens, config :explorer, Explorer.Repo.BridgedTokens,
prepare: :unnamed, prepare: :unnamed,
timeout: :timer.seconds(60) timeout: :timer.seconds(60),
ssl_opts: [verify: :verify_none]
config :explorer, Explorer.Repo.Filecoin, config :explorer, Explorer.Repo.Filecoin,
prepare: :unnamed, prepare: :unnamed,
timeout: :timer.seconds(60) timeout: :timer.seconds(60),
ssl_opts: [verify: :verify_none]
config :explorer, Explorer.Repo.Stability, config :explorer, Explorer.Repo.Stability,
prepare: :unnamed, prepare: :unnamed,
timeout: :timer.seconds(60) timeout: :timer.seconds(60),
ssl_opts: [verify: :verify_none]
config :explorer, Explorer.Repo.Mud, config :explorer, Explorer.Repo.Mud,
prepare: :unnamed, prepare: :unnamed,
timeout: :timer.seconds(60) timeout: :timer.seconds(60),
ssl_opts: [verify: :verify_none]
config :explorer, Explorer.Tracer, env: "production", disabled?: true config :explorer, Explorer.Tracer, env: "production", disabled?: true

Loading…
Cancel
Save