From 6f09161dd842187b8ba3e4f328e62718be411464 Mon Sep 17 00:00:00 2001 From: Alexander Strizhakov Date: Tue, 21 Apr 2020 08:50:49 +0300 Subject: [PATCH] ssl options --- lib/pleroma/http/adapter_helper/gun.ex | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/pleroma/http/adapter_helper/gun.ex b/lib/pleroma/http/adapter_helper/gun.ex index ead7cdc6b..18cf64bcc 100644 --- a/lib/pleroma/http/adapter_helper/gun.ex +++ b/lib/pleroma/http/adapter_helper/gun.ex @@ -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: "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