From ccfe0921edb6d81ccf53135654fd364eea679140 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 18 Jan 2017 17:32:45 +0100 Subject: Add ejabberd tweaks as snippets. --- ejabberd/config.d/xmpp-c2s.yml | 61 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 ejabberd/config.d/xmpp-c2s.yml (limited to 'ejabberd/config.d/xmpp-c2s.yml') diff --git a/ejabberd/config.d/xmpp-c2s.yml b/ejabberd/config.d/xmpp-c2s.yml new file mode 100644 index 0000000..29d0163 --- /dev/null +++ b/ejabberd/config.d/xmpp-c2s.yml @@ -0,0 +1,61 @@ +# XMPP client service (secure) +# +# * Custom Diffie-Hellman params needs to be created ahead, e.g. with +# /etc/local-COMMON/ejabberd/mkdhparams.sh +# +# Sample DNS entries: +# xmpp IN A 192.0.2.1 +# _xmpp-client._tcp IN SRV 0 0 5222 xmpp +# _xmppconnect IN TXT "_xmpp-client-xbosh=https://chat.example.org/http-bind" +# _xmppconnect IN TXT "_xmpp-client-websocket=wss://chat.example.org/xmpp-websocket" + +listen: + - + port: 5222 + ip: "::" + module: ejabberd_c2s + certfile: 'CERT_PATH' + starttls_required: true + protocol_options: 'TLS_OPTIONS' + max_stanza_size: 65536 + shaper: c2s_shaper + access: c2s + zlib: true + tls_compression: false + dhfile: 'DH_PATH' + ciphers: 'TLS_CIPHERS' + resend_on_timeout: if_offline + +modules: + mod_admin_extra: [] + mod_adhoc: [] + mod_announce: + access: announce + mod_caps: [] + mod_disco: [] + mod_http_bind: [] + mod_last: [] + mod_offline: + access_max_user_messages: max_user_offline_messages + mod_ping: [] + mod_privacy: [] + mod_private: [] + mod_pubsub: + access_createnode: pubsub_createnode + ignore_pep_from_offline: false + last_item_cache: true + plugins: + - "flat" + - "hometree" + - "pep" + mod_roster: + versioning: true + mod_shared_roster: [] + mod_stats: [] + mod_time: [] + mod_vcard: [] + mod_version: [] + mod_mam: [] + mod_blocking: [] + mod_client_state: [] + mod_carboncopy: [] -- cgit v1.2.3