jitsi-meet.cfg.lua 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. admins = { "{{ .Env.JICOFO_AUTH_USER }}@{{ .Env.XMPP_AUTH_DOMAIN }}" }
  2. plugin_paths = { "/prosody-plugins/", "/prosody-plugins-custom" }
  3. http_default_host = "{{ .Env.XMPP_DOMAIN }}"
  4. {{ $ENABLE_AUTH := .Env.ENABLE_AUTH | default "0" | toBool }}
  5. {{ $AUTH_TYPE := .Env.AUTH_TYPE | default "internal" }}
  6. {{ $JWT_ASAP_KEYSERVER := .Env.JWT_ASAP_KEYSERVER | default "" }}
  7. {{ $JWT_ALLOW_EMPTY := .Env.JWT_ALLOW_EMPTY | default "0" | toBool }}
  8. {{ $JWT_AUTH_TYPE := .Env.JWT_AUTH_TYPE | default "token" }}
  9. {{ $JWT_TOKEN_AUTH_MODULE := .Env.JWT_TOKEN_AUTH_MODULE | default "token_verification" }}
  10. {{ if and $ENABLE_AUTH (eq $AUTH_TYPE "jwt") .Env.JWT_ACCEPTED_ISSUERS }}
  11. asap_accepted_issuers = { "{{ join "\",\"" (splitList "," .Env.JWT_ACCEPTED_ISSUERS) }}" }
  12. {{ end }}
  13. {{ if and $ENABLE_AUTH (eq $AUTH_TYPE "jwt") .Env.JWT_ACCEPTED_AUDIENCES }}
  14. asap_accepted_audiences = { "{{ join "\",\"" (splitList "," .Env.JWT_ACCEPTED_AUDIENCES) }}" }
  15. {{ end }}
  16. VirtualHost "{{ .Env.XMPP_DOMAIN }}"
  17. {{ if $ENABLE_AUTH }}
  18. {{ if eq $AUTH_TYPE "jwt" }}
  19. authentication = "{{ $JWT_AUTH_TYPE }}"
  20. app_id = "{{ .Env.JWT_APP_ID }}"
  21. app_secret = "{{ .Env.JWT_APP_SECRET }}"
  22. allow_empty_token = {{ if $JWT_ALLOW_EMPTY }}true{{ else }}false{{ end }}
  23. {{ if $JWT_ASAP_KEYSERVER }}
  24. asap_key_server = "{{ .Env.JWT_ASAP_KEYSERVER }}"
  25. {{ end }}
  26. {{ else if eq $AUTH_TYPE "ldap" }}
  27. authentication = "cyrus"
  28. cyrus_application_name = "xmpp"
  29. allow_unencrypted_plain_auth = true
  30. {{ else if eq $AUTH_TYPE "internal" }}
  31. authentication = "internal_hashed"
  32. {{ end }}
  33. {{ else }}
  34. authentication = "anonymous"
  35. {{ end }}
  36. ssl = {
  37. key = "/config/certs/{{ .Env.XMPP_DOMAIN }}.key";
  38. certificate = "/config/certs/{{ .Env.XMPP_DOMAIN }}.crt";
  39. }
  40. modules_enabled = {
  41. "bosh";
  42. "pubsub";
  43. "ping";
  44. "speakerstats";
  45. "conference_duration";
  46. {{ if .Env.XMPP_MODULES }}
  47. "{{ join "\";\n\"" (splitList "," .Env.XMPP_MODULES) }}";
  48. {{ end }}
  49. {{ if and $ENABLE_AUTH (eq $AUTH_TYPE "ldap") }}
  50. "auth_cyrus";
  51. {{end}}
  52. }
  53. speakerstats_component = "speakerstats.{{ .Env.XMPP_DOMAIN }}"
  54. conference_duration_component = "conferenceduration.{{ .Env.XMPP_DOMAIN }}"
  55. c2s_require_encryption = false
  56. {{ if and $ENABLE_AUTH (.Env.ENABLE_GUESTS | default "0" | toBool) }}
  57. VirtualHost "{{ .Env.XMPP_GUEST_DOMAIN }}"
  58. authentication = "anonymous"
  59. c2s_require_encryption = false
  60. {{ end }}
  61. VirtualHost "{{ .Env.XMPP_AUTH_DOMAIN }}"
  62. ssl = {
  63. key = "/config/certs/{{ .Env.XMPP_AUTH_DOMAIN }}.key";
  64. certificate = "/config/certs/{{ .Env.XMPP_AUTH_DOMAIN }}.crt";
  65. }
  66. authentication = "internal_hashed"
  67. {{ if .Env.XMPP_RECORDER_DOMAIN }}
  68. VirtualHost "{{ .Env.XMPP_RECORDER_DOMAIN }}"
  69. modules_enabled = {
  70. "ping";
  71. }
  72. authentication = "internal_hashed"
  73. {{ end }}
  74. Component "{{ .Env.XMPP_INTERNAL_MUC_DOMAIN }}" "muc"
  75. modules_enabled = {
  76. "ping";
  77. {{ if .Env.XMPP_INTERNAL_MUC_MODULES }}
  78. "{{ join "\";\n\"" (splitList "," .Env.XMPP_INTERNAL_MUC_MODULES) }}";
  79. {{ end }}
  80. }
  81. storage = "memory"
  82. muc_room_cache_size = 1000
  83. Component "{{ .Env.XMPP_MUC_DOMAIN }}" "muc"
  84. storage = "memory"
  85. modules_enabled = {
  86. {{ if .Env.XMPP_MUC_MODULES }}
  87. "{{ join "\";\n\"" (splitList "," .Env.XMPP_MUC_MODULES) }}";
  88. {{ end }}
  89. {{ if and $ENABLE_AUTH (eq $AUTH_TYPE "jwt") }}
  90. "{{ $JWT_TOKEN_AUTH_MODULE }}";
  91. {{ end }}
  92. }
  93. muc_room_locking = false
  94. muc_room_default_public_jids = true
  95. Component "focus.{{ .Env.XMPP_DOMAIN }}"
  96. component_secret = "{{ .Env.JICOFO_COMPONENT_SECRET }}"
  97. Component "speakerstats.{{ .Env.XMPP_DOMAIN }}" "speakerstats_component"
  98. muc_component = "{{ .Env.XMPP_MUC_DOMAIN }}"
  99. Component "conferenceduration.{{ .Env.XMPP_DOMAIN }}" "conference_duration_component"
  100. muc_component = "{{ .Env.XMPP_MUC_DOMAIN }}"