From 6e31c7a79b165147505ca844ff884aec6f13392d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Fri, 24 Mar 2023 16:35:23 +0700 Subject: [PATCH] Use proxy protocol --- site-cookbooks/kosmos-ejabberd/templates/ejabberd.yml.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/site-cookbooks/kosmos-ejabberd/templates/ejabberd.yml.erb b/site-cookbooks/kosmos-ejabberd/templates/ejabberd.yml.erb index 758ac6e..4d8cb70 100644 --- a/site-cookbooks/kosmos-ejabberd/templates/ejabberd.yml.erb +++ b/site-cookbooks/kosmos-ejabberd/templates/ejabberd.yml.erb @@ -40,6 +40,7 @@ listen: port: 5222 ip: "::" module: ejabberd_c2s + use_proxy_protocol: true starttls: true max_stanza_size: 65536 shaper: c2s_shaper @@ -48,6 +49,7 @@ listen: port: 5223 ip: "::" module: ejabberd_c2s + use_proxy_protocol: true tls: true max_stanza_size: 65536 shaper: c2s_shaper @@ -56,12 +58,14 @@ listen: port: 5269 ip: "::" module: ejabberd_s2s_in + use_proxy_protocol: true max_stanza_size: 131072 shaper: s2s_shaper - port: 5443 ip: "::" module: ejabberd_http + use_proxy_protocol: true request_handlers: "/ws": ejabberd_http_ws "/bosh": mod_bosh