Use proxy protocol

This commit is contained in:
Râu Cao 2023-03-24 16:35:23 +07:00
parent a2fc3ba25c
commit 6e31c7a79b
Signed by: raucao
GPG Key ID: 15E65F399D084BA9

View File

@ -40,6 +40,7 @@ listen:
port: 5222 port: 5222
ip: "::" ip: "::"
module: ejabberd_c2s module: ejabberd_c2s
use_proxy_protocol: true
starttls: true starttls: true
max_stanza_size: 65536 max_stanza_size: 65536
shaper: c2s_shaper shaper: c2s_shaper
@ -48,6 +49,7 @@ listen:
port: 5223 port: 5223
ip: "::" ip: "::"
module: ejabberd_c2s module: ejabberd_c2s
use_proxy_protocol: true
tls: true tls: true
max_stanza_size: 65536 max_stanza_size: 65536
shaper: c2s_shaper shaper: c2s_shaper
@ -56,12 +58,14 @@ listen:
port: 5269 port: 5269
ip: "::" ip: "::"
module: ejabberd_s2s_in module: ejabberd_s2s_in
use_proxy_protocol: true
max_stanza_size: 131072 max_stanza_size: 131072
shaper: s2s_shaper shaper: s2s_shaper
- -
port: 5443 port: 5443
ip: "::" ip: "::"
module: ejabberd_http module: ejabberd_http
use_proxy_protocol: true
request_handlers: request_handlers:
"/ws": ejabberd_http_ws "/ws": ejabberd_http_ws
"/bosh": mod_bosh "/bosh": mod_bosh