Skip to content

Commit

Permalink
Database Engine Version Upgrade #1486
Browse files Browse the repository at this point in the history
final ssl options
  • Loading branch information
kkrug committed Feb 3, 2025
1 parent 2d0381a commit 299cd89
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions config/prod.exs
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,12 @@ config :challenge_gov, Web.Endpoint,
cache_static_manifest: "priv/static/cache_manifest.json",
secret_key_base: System.get_env("SECRET_KEY_BASE")

# db_ssl_ca_cert = Path.join([:code.priv_dir(:challenge_gov), "certs", "us-gov-west-1-bundle.pem"])
# check_hostname = String.to_charlist(System.get_env("DATABASE_HOST"))

# ssl_opts = [
# cacertfile: db_ssl_ca_cert,
# server_name_indication: check_hostname,
# verify: :verify_peer,
# # using erlang library ssl_verify_fun for ssl verification
# verify_fun: {&:ssl_verify_hostname.verify_fun/3, [check_hostname: check_hostname]}
# ]

config :challenge_gov, ChallengeGov.Repo,
url: System.get_env("DATABASE_URL"),
ssl: true,
# ssl_opts: ssl_opts,
# pool_timeout: :infinity,
# timeout: :infinity,
ssl_opts: [
cacertfile: "priv/certs/us-gov-west-1-bundle.pem",
verify: :verify_none,
verify: :verify_peer,
versions: [:"tlsv1.2", :"tlsv1.3"]
],
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "15"),
Expand Down

0 comments on commit 299cd89

Please sign in to comment.