Commit 0429edca authored by Alexander Strizhakov's avatar Alexander Strizhakov

ssl options for gun

parent 918a8094
Pipeline #24655 failed with stages
in 9 minutes and 59 seconds
......@@ -46,9 +46,15 @@ def after_request(opts) do
defp add_scheme_opts(opts, %{scheme: "http"}), do: opts
defp add_scheme_opts(opts, %{scheme: "https"}) do
tls_opts = [
log_level: :warning,
session_lifetime: 6000,
session_cache_client_max: 250
]
opts
|> Keyword.put(:certificates_verification, true)
|> Keyword.put(:tls_opts, log_level: :warning)
|> Keyword.put(:tls_opts, tls_opts)
end
defp maybe_get_conn(adapter_opts, uri, incoming_opts) do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment