Forced 1 on 1

Without having the decision being left to the user, can we force the meeting to only have 1 on 1 meetings?
Im working on something to help patients during covid and noticed that its easy to chare the link to the meeting and anyone can join. I would prefer if it even said “room full” or something.

You can use this jitsi-meet/mod_muc_max_occupants.lua at master · jitsi/jitsi-meet · GitHub

Thanks
It seems like if I change it there all chats would be 1 on 1. Instead of being able to set a max per meeting. I saw this is a prosody plugin and so I would assume it’s a prosody setting I would need to customize.


Would adding a JWT token to each user session allow me to get the same result?
Hoping to force 1 to1 but want to allow more if needed.

I did not check it myself but maybe using a subdomain could be simpler ?

  if whitelist and whitelist:contains(domain) or whitelist:contains(user..'@'..domain) then
    return;
  end