Skip to content

Commit

Permalink
Enable Ecto SSL only in prod (#4425)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanIvanoff authored Oct 16, 2024
1 parent 47cca58 commit 2c613a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,6 @@ config :sanbase, Sanbase.Repo,
queue_target: 5000,
queue_interval: 1000,
timeout: 30_000,
# because of pgbouncer
prepare: :unnamed,
ssl: true,
ssl_opts: [verify: :verify_none],
migration_timestamps: [type: :naive_datetime_usec]

config :sanbase, Sanbase.Accounts.Hmac, secret_key: {:system, "APIKEY_HMAC_SECRET_KEY", nil}
Expand Down
4 changes: 4 additions & 0 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ if config_env() == :prod do
"//*.sanbase-admin.production.san"
]

config :sanbase, Sanbase.Repo,
ssl: true,
ssl_opts: [verify: :verify_none]

config :ethereumex,
url: parity_url,
http_options: [timeout: 25_000, recv_timeout: 25_000],
Expand Down

0 comments on commit 2c613a0

Please sign in to comment.