How to configure Multidomain support for Jitsi Meet Docker ? (Behind CDN)

Hi there, I was trying to attach those two domains to my jitsi meet docker installation.
The relationship between those domains is [xyz.] pointed to [abc.] by CNAME.

  • abc.example
  • xyz.cdn

My installation is created with [abc.example]. And I want to make it accessible by [xyz.cdn]. Just configured DNS record then connect, prosody throws the following error:

Disconnecting client, <stream:error> is: <stream:error><host-unknown xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text xmlns='urn:ietf:params:xml:ns:xmpp-streams'>This server does not serve xyz.cdn</text></stream:error>

Then I searched for relating problems, found those solutions:

  1. Same Jitsi-Meet instance with multiple domain names
  2. config.js.multidomain.example
  3. []

However, none of above works. I was hoping to set nginx Host to [abc.example] could solve this problem (1st link above), it didn’t work (does this something to do with WebSocket? )

I’m using following nginx configuration:

location /xmpp-websocket {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;

proxy_set_header Host abc.example;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_read_timeout 900s;

My problem is how can I set up multidomain support successfully?

Thanks in advance.