Token_affiliation module with docker setup

If anyone using mod_token_affiliation.lua with docker-setup, Please share changes that one has to add to make it work. This module is working fine with non-docker setup but I’m unable to make it work with docker. I’m using websockets for Prosody and JVB.

jitsi-meet.cfg.lua

admins = {
    "focus@auth.meet.jitsi",
    "jvb1@auth.meet.jitsi"
}

plugin_paths = { "/prosody-plugins/", "/prosody-plugins-custom" }
http_default_host = "meet.jitsi"
muc_mapper_domain_prefix = "muc"
muc_mapper_domain_base = "meet.jitsi"

asap_accepted_issuers = { "my_web_client","my_app_client" }
asap_accepted_audiences = { "myserver1","myserver2" }

-- Deprecated in 0.12
-- https://github.com/bjc/prosody/commit/26542811eafd9c708a130272d7b7de77b92712de
cross_domain_websocket = { "https://localhost:8443" };
consider_bosh_secure = true;

VirtualHost "meet.jitsi"
    authentication = "token"
    app_id = "E1B40"
    app_secret = "XXX"
    allow_empty_token = false

    ssl = {
        key = "/config/certs/meet.jitsi.key";
        certificate = "/config/certs/meet.jitsi.crt";
    }
    modules_enabled = {

        "websocket";
        "smacks"; -- XEP-0198: Stream Management
        "bosh";
        "pubsub";
        "ping";
        "speakerstats";
        "conference_duration";
    }

    speakerstats_component = "speakerstats.meet.jitsi"
    conference_duration_component = "conferenceduration.meet.jitsi"
    c2s_require_encryption = false

VirtualHost "auth.meet.jitsi"
    ssl = {
        key = "/config/certs/auth.meet.jitsi.key";
        certificate = "/config/certs/auth.meet.jitsi.crt";
    }
    authentication = "internal_hashed"

VirtualHost "recorder.meet.jitsi"
    modules_enabled = {
      "ping";
    }
    authentication = "internal_hashed"

Component "internal-muc.meet.jitsi" "muc"
    storage = "memory"
    modules_enabled = {
        "ping";

    }
    muc_room_locking = false
    muc_room_default_public_jids = true

Component "muc.meet.jitsi" "muc"
    storage = "memory"
    modules_enabled = {
        "muc_meeting_id";
        "token_verification";
        "token_affiliation";
    }
    muc_room_cache_size = 1000
    muc_room_locking = false
    muc_room_default_public_jids = true

Component "focus.meet.jitsi"
    component_secret = "adda1154f24155a041bf2083e9e49978"

Component "speakerstats.meet.jitsi" "speakerstats_component"
    muc_component = "muc.meet.jitsi"

Component "conferenceduration.meet.jitsi" "conference_duration_component"
    muc_component = "muc.meet.jitsi"

If you have a test environment and can allow me to access it through SSH, I can check it

I don’t have testing(or staging) server. I tested all my changes at local windows 10 machine running WSL2 with Ubuntu 18.04. But I can provide you docker config If it is possible for you to test it at your side.