ssl options

This commit is contained in:
Alexander Strizhakov 2020-04-21 08:50:49 +03:00
parent 96bc967008
commit 6f09161dd8
No known key found for this signature in database
GPG Key ID: 022896A53AEF1381

View File

@ -46,9 +46,15 @@ defmodule Pleroma.HTTP.AdapterHelper.Gun do
defp add_scheme_opts(opts, %{scheme: "http"}), do: opts defp add_scheme_opts(opts, %{scheme: "http"}), do: opts
defp add_scheme_opts(opts, %{scheme: "https"}) do defp add_scheme_opts(opts, %{scheme: "https"}) do
tls_opts = [
log_level: :warning,
session_lifetime: 6000,
session_cache_client_max: 250
]
opts opts
|> Keyword.put(:certificates_verification, true) |> Keyword.put(:certificates_verification, true)
|> Keyword.put(:tls_opts, log_level: :warning) |> Keyword.put(:tls_opts, tls_opts)
end end
defp maybe_get_conn(adapter_opts, uri, incoming_opts) do defp maybe_get_conn(adapter_opts, uri, incoming_opts) do