From 764f432ae404fd16a608b1499b4c90295e58aab0 Mon Sep 17 00:00:00 2001 From: Andrzej Telezynski Date: Tue, 5 Nov 2024 16:09:15 +0100 Subject: [PATCH] MIM-2314 Add cacertfile to config templates for big tests --- rel/fed1.vars-toml.config | 1 + rel/files/mongooseim.toml | 4 ++++ rel/mim1.vars-toml.config | 2 ++ rel/mim2.vars-toml.config | 1 + rel/mim3.vars-toml.config | 1 + rel/reg1.vars-toml.config | 1 + 6 files changed, 10 insertions(+) diff --git a/rel/fed1.vars-toml.config b/rel/fed1.vars-toml.config index 3f15efe96b..92321f9f60 100644 --- a/rel/fed1.vars-toml.config +++ b/rel/fed1.vars-toml.config @@ -55,6 +55,7 @@ {c2s_dhfile, "\"priv/ssl/fake_dh_server.pem\""}. {s2s_dhfile, "\"priv/ssl/fake_dh_server.pem\""}. +{s2s_cacertfile, "\"priv/ssl/cacert.pem\""}. {mod_cache_users, ""}. diff --git a/rel/files/mongooseim.toml b/rel/files/mongooseim.toml index b3aa20af87..ace4c0cf1d 100644 --- a/rel/files/mongooseim.toml +++ b/rel/files/mongooseim.toml @@ -151,6 +151,10 @@ {{#s2s_dhfile}} tls.dhfile = {{{s2s_dhfile}}} {{/s2s_dhfile}} + {{#s2s_cacertfile}} + tls.cacertfile = {{{s2s_cacertfile}}} + {{/s2s_cacertfile}} + {{#listen_service}} {{{listen_service}}} diff --git a/rel/mim1.vars-toml.config b/rel/mim1.vars-toml.config index 6af5aba5bc..ed7dc050f0 100644 --- a/rel/mim1.vars-toml.config +++ b/rel/mim1.vars-toml.config @@ -68,6 +68,7 @@ shaper = \"c2s_shaper\" max_stanza_size = 65536 tls.certfile = \"priv/ssl/fake_server.pem\" + tls.cacertfile = \"priv/ssl/cacert.pem\" tls.mode = \"tls\""}. {listen_service, "[[listen.service]] @@ -104,6 +105,7 @@ {c2s_dhfile, "\"priv/ssl/fake_dh_server.pem\""}. {s2s_dhfile, "\"priv/ssl/fake_dh_server.pem\""}. +{s2s_cacertfile, "\"priv/ssl/cacert.pem\""}. {erlang_doctor_limit, 100000}. diff --git a/rel/mim2.vars-toml.config b/rel/mim2.vars-toml.config index e72db98763..5ee1ee3b9b 100644 --- a/rel/mim2.vars-toml.config +++ b/rel/mim2.vars-toml.config @@ -58,6 +58,7 @@ {c2s_dhfile, "\"priv/ssl/fake_dh_server.pem\""}. {s2s_dhfile, "\"priv/ssl/fake_dh_server.pem\""}. +{s2s_cacertfile, "\"priv/ssl/cacert.pem\""}. {host_config, "[[host_config]] diff --git a/rel/mim3.vars-toml.config b/rel/mim3.vars-toml.config index a062094a91..51c7ed61c8 100644 --- a/rel/mim3.vars-toml.config +++ b/rel/mim3.vars-toml.config @@ -54,6 +54,7 @@ {c2s_dhfile, "\"priv/ssl/fake_dh_server.pem\""}. {s2s_dhfile, "\"priv/ssl/fake_dh_server.pem\""}. +{s2s_cacertfile, "\"priv/ssl/cacert.pem\""}. {host_config, "[[host_config]] diff --git a/rel/reg1.vars-toml.config b/rel/reg1.vars-toml.config index 9462854da8..d03fb9ffe5 100644 --- a/rel/reg1.vars-toml.config +++ b/rel/reg1.vars-toml.config @@ -51,6 +51,7 @@ {c2s_dhfile, "\"priv/ssl/fake_dh_server.pem\""}. {s2s_dhfile, "\"priv/ssl/fake_dh_server.pem\""}. +{s2s_cacertfile, "\"priv/ssl/cacert.pem\""}. {mod_cache_users, ""}.