File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
registrations/lib/registrations Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ defmodule Registrations.Application do
13
13
config: % { metadata: [ :file , :line ] }
14
14
} )
15
15
16
+ set_premailex_ssl_options ( )
17
+
16
18
# Without this the GameController filter produces this error: not an already existing atom
17
19
specification_concept_hack = String . to_atom ( "specification.concept" )
18
20
specification_id_hack = String . to_atom ( "specification.id" )
@@ -51,4 +53,21 @@ defmodule Registrations.Application do
51
53
RegistrationsWeb.Endpoint . config_change ( changed , removed )
52
54
:ok
53
55
end
56
+
57
+ # https://github.com/danschultzer/premailex/issues/87#issuecomment-2635517602
58
+ defp set_premailex_ssl_options do
59
+ Application . put_env (
60
+ :premailex ,
61
+ :http_adapter ,
62
+ { Premailex.HTTPAdapter.Httpc ,
63
+ [
64
+ ssl: [
65
+ verify: :verify_peer ,
66
+ cacerts: :public_key . cacerts_get ( ) ,
67
+ depth: 3 ,
68
+ customize_hostname_check: [ match_fun: :public_key . pkix_verify_hostname_match_fun ( :https ) ]
69
+ ]
70
+ ] }
71
+ )
72
+ end
54
73
end
You can’t perform that action at this time.
0 commit comments