processone / ejabberd

Robust, Ubiquitous and Massively Scalable Messaging Platform (XMPP, MQTT, SIP Server)
https://www.process-one.net/en/ejabberd/
Other
6.06k stars 1.51k forks source link

configuring virtual host domain to be handled by external component #3965

Closed mkassir95 closed 1 year ago

mkassir95 commented 1 year ago

Hello,

I have a virtual host(localhost) and an external component(mymuc.domain.tld) which is connected to ejabberd. Is there a way to configure the virtual host in such a way that any request/message sent to the virtual host is also handled/received by the external component?

mkassir95 commented 1 year ago

This is my ejabberd.yml

```yaml hosts: - localhost loglevel: info listen: - port: 5222 ip: "::" module: ejabberd_c2s #starttls: true #certfile: "./xmpp_example_com.pem" - port: 5280 ip: "::" module: ejabberd_http request_handlers: /admin: ejabberd_web_admin /.well-known/acme-challenge: ejabberd_acme - port: 5281 module: ejabberd_http ip: "::" request_handlers: /api: mod_http_api /oauth: ejabberd_oauth - port: 5347 ip: "::" module: ejabberd_service hosts: "mymuc.domain.tld": password: "mysecret" acl: exampleorg: server: localhost api_permissions: "admin api permsions": from: - ejabberd_ctl - mod_http_api who: acl: exampleorg what: "*" modules: mod_admin_extra: {} mod_muc: access: - allow access_admin: - allow: admin access_create: muc_create access_persistent: muc_create access_mam: - allow default_room_options: allow_subscription: true # enable MucSub allow_private_messages: true allow_user_invites: true mam: true persistent: true mod_muc_admin: {} mod_push_keepalive: {} mod_offline: {} mod_push: {} ```