2
0

jitsi-meet.cfg.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. admins = { "{{ .Env.JICOFO_AUTH_USER }}@{{ .Env.XMPP_AUTH_DOMAIN }}" }
  2. plugin_paths = { "/prosody-plugins-custom" }
  3. http_default_host = "{{ .Env.XMPP_DOMAIN }}"
  4. VirtualHost "{{ .Env.XMPP_DOMAIN }}"
  5. {{ if .Env.ENABLE_AUTH | default "0" | toBool }}
  6. authentication = "internal_plain"
  7. {{ else }}
  8. authentication = "anonymous"
  9. {{ end }}
  10. ssl = {
  11. key = "/config/certs/{{ .Env.XMPP_DOMAIN }}.key";
  12. certificate = "/config/certs/{{ .Env.XMPP_DOMAIN }}.crt";
  13. }
  14. modules_enabled = {
  15. "bosh";
  16. "pubsub";
  17. "ping";
  18. {{ if .Env.XMPP_MODULES }}
  19. "{{ join "\";\n\"" (splitList "," .Env.XMPP_MODULES) }}";
  20. {{ end }}
  21. }
  22. c2s_require_encryption = false
  23. {{ if and (.Env.ENABLE_AUTH | default "0" | toBool) (.Env.ENABLE_GUESTS | default "0" | toBool) }}
  24. VirtualHost "{{ .Env.XMPP_GUEST_DOMAIN }}"
  25. authentication = "anonymous"
  26. c2s_require_encryption = false
  27. {{ end }}
  28. VirtualHost "{{ .Env.XMPP_AUTH_DOMAIN }}"
  29. ssl = {
  30. key = "/config/certs/{{ .Env.XMPP_AUTH_DOMAIN }}.key";
  31. certificate = "/config/certs/{{ .Env.XMPP_AUTH_DOMAIN }}.crt";
  32. }
  33. authentication = "internal_plain"
  34. Component "{{ .Env.XMPP_INTERNAL_MUC_DOMAIN }}" "muc"
  35. modules_enabled = {
  36. "ping";
  37. {{ if .Env.XMPP_INTERNAL_MUC_MODULES }}
  38. "{{ join "\";\n\"" (splitList "," .Env.XMPP_INTERNAL_MUC_MODULES) }}";
  39. {{ end }}
  40. }
  41. storage = "memory"
  42. muc_room_cache_size = 1000
  43. Component "{{ .Env.XMPP_MUC_DOMAIN }}" "muc"
  44. storage = "memory"
  45. modules_enabled = {
  46. {{ if .Env.XMPP_MUC_MODULES }}
  47. "{{ join "\";\n\"" (splitList "," .Env.XMPP_MUC_MODULES) }}";
  48. {{ end }}
  49. }
  50. Component "focus.{{ .Env.XMPP_DOMAIN }}"
  51. component_secret = "{{ .Env.JICOFO_COMPONENT_SECRET }}"