From b595ac2150e42a22e92b954188ae374d290b3f53 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Thu, 13 Jul 2023 21:40:26 +0330 Subject: update --- terminaldweller.com/ejabberd/ejabberd.yml | 37 ++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) (limited to 'terminaldweller.com/ejabberd/ejabberd.yml') diff --git a/terminaldweller.com/ejabberd/ejabberd.yml b/terminaldweller.com/ejabberd/ejabberd.yml index 5072841..58a5595 100644 --- a/terminaldweller.com/ejabberd/ejabberd.yml +++ b/terminaldweller.com/ejabberd/ejabberd.yml @@ -82,15 +82,26 @@ listen: ciphers: 'TLS_CIPHERS' dhfile: 'DH_FILE' request_handlers: - '/admin': ejabberd_web_admin + #'/admin': ejabberd_web_admin '/api': mod_http_api '/bosh': mod_bosh '/captcha': ejabberd_captcha '/upload': mod_http_upload '/ws': ejabberd_http_ws '/oauth': ejabberd_oauth + #'/.well-known/host-meta': mod_host_meta + #'/.well-known/host-meta.json': mod_host_meta + - port: 443 + ip: '0.0.0.0' + module: ejabberd_http + tls: true + protocol_options: 'TLS_OPTIONS' + ciphers: 'TLS_CIPHERS' + dhfile: 'DH_FILE' + request_handlers: '/.well-known/host-meta': mod_host_meta '/.well-known/host-meta.json': mod_host_meta + '/admin': ejabberd_web_admin - port: 5080 ip: '0.0.0.0' module: ejabberd_http @@ -257,16 +268,32 @@ modules: mod_carboncopy: {} mod_client_state: {} mod_configure: {} - mod_disco: {} + mod_disco: + server_info: + - + modules: all + name: "abuse-addresses" + urls: ["mailto:devi@terminaldweller.com"] + - + modules: [mod_host_meta] + name: "mod host meta location" + urls: + - https://jabber.terminaldweller.com:5443 mod_fail2ban: {} mod_http_api: {} mod_http_upload: put_url: https://@HOST@:5443/upload + docroot: /var/www/upload + custom_headers: + "Access-Control-Allow-Origin": "https://@HOST@" + "Access-Control-Allow-Methods": "GET,HEAD,PUT,OPTIONS" + "Access-Control-Allow-Headers": "Content-Type" mod_last: {} mod_mam: - db_type: sql + db_type: mnesia assume_mam_usage: true - default: never + default: always + use_cache: true mod_mqtt: {} mod_muc: access: @@ -279,7 +306,7 @@ modules: - allow default_room_options: allow_subscription: true - mam: false + mam: true mod_muc_admin: {} mod_offline: access_max_user_messages: max_user_offline_messages -- cgit v1.2.3