Lua Syntax

Which is correct:

modules_enabled = {
   "bosh",
   "pubsub",
   "ping", -- Enable mod_ping
   "speakerstats",
   "turncredentials", -- Use XEP-0215
   "websocket",
   "smacks", -- Use XEP-0215
   "conference_duration",
   "muc_lobby_rooms",
   "presence_identity"
 }

or

modules_enabled = {
   "bosh";
   "pubsub";
   "ping"; -- Enable mod_ping
   "speakerstats";
   "turncredentials"; -- Use XEP-0215
   "websocket";
   "smacks"; -- Use XEP-0215
   "conference_duration";
   "muc_lobby_rooms";
   "presence_identity";
 }

or

modules_enabled = {
   "bosh"
   "pubsub"
   "ping" -- Enable mod_ping
   "speakerstats"
   "turncredentials" -- Use XEP-0215
   "websocket"
   "smacks" -- Use XEP-0215
   "conference_duration"
   "muc_lobby_rooms"
   "presence_identity"
 }

Is this a table of values? then comma separators are needed. But I have seen all kinds of line terminators so not sure if Jitsi is using a novel approach here.

The first two.

That was fast, if you are in Bulgaria, you do get up early. The Luarocks guide sort of hints at the second. Sorry Luarocks guide shows the first as the correct syntax.

Would the following be correct then?

VirtualHost "guest.meet.example.com"
   authentication = "token"
   -- Properties below are modified by jitsi-meet-tokens package config
   -- and authentication above is switched to "token"
   app_id="jkitol"
   app_secret="lkDjuirye7865uljkSD"
   allow_empty_token = true
   --
  speakerstats_component = "speakerstats.meet.example.com"
  conference_duration_component = "conferenceduration.meet.example.com
  -- we need bosh
  modules_enabled = {
      "speakerstats",
      "turncredentials", -- Use XEP-0215
      "websocket",
      "smacks", -- Use XEP-0215
      "conference_duration",
      "muc_lobby_rooms",
      "presence_identity"
  }
  c2s_require_encryption = false
  lobby_muc = "lobby.meet.example.com"
  main_muc = "conference.meet.example.com"
  muc_lobby_whitelist = { "recorder.meet.example.com" }

The second one is easier when you generate these kind of configs when doing automation … because you need to care not to add the last , in the first one.

I think so.

OK, will follow you lead.

I will replace commas with semicolons as you suggest.

Semicolons aren’t required for single line statements, correct?

Actually commas are required for a table of values like:

turncredentials = {
  { type = "stun", host = "meet.example.com", port = "3478" },
  { type = "turn", host = "meet.example.com", port = "3478", transport = "udp" },
  { type = "turns", host = "meet.example.com", port = "443", transport = "tcp", }
}