jitsi-meet.cfg.lua 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. {{ if and (.Env.ENABLE_AUTH | default "0" | toBool) (.Env.JWT_ENABLE_TOKEN_AUTH | default "0" | toBool) .Env.JWT_ACCEPTED_ISSUERS }}
  5. asap_accepted_issuers = { "{{ join "\",\"" (splitList "," .Env.JWT_ACCEPTED_ISSUERS) }}" }
  6. {{ end }}
  7. {{ if and (.Env.ENABLE_AUTH | default "0" | toBool) (.Env.JWT_ENABLE_TOKEN_AUTH | default "0" | toBool) .Env.JWT_ACCEPTED_AUDIENCES }}
  8. asap_accepted_audiences = { "{{ join "\",\"" (splitList "," .Env.JWT_ACCEPTED_AUDIENCES) }}" }
  9. {{ end }}
  10. VirtualHost "{{ .Env.XMPP_DOMAIN }}"
  11. {{ if .Env.ENABLE_AUTH | default "0" | toBool }}
  12. {{ if .Env.JWT_ENABLE_TOKEN_AUTH | default "0" | toBool }}
  13. authentication = "token"
  14. app_id = "{{ .Env.JWT_APP_ID }}"
  15. app_secret = "{{ .Env.JWT_APP_SECRET }}"
  16. allow_empty_token = false
  17. {{ else if .Env.ENABLE_LDAP_AUTH | default "0" | toBool }}
  18. authentication = "cyrus"
  19. cyrus_application_name = "xmpp"
  20. allow_unencrypted_plain_auth = true
  21. {{ else }}
  22. authentication = "internal_plain"
  23. {{ end }}
  24. {{ else }}
  25. authentication = "anonymous"
  26. {{ end }}
  27. ssl = {
  28. key = "/config/certs/{{ .Env.XMPP_DOMAIN }}.key";
  29. certificate = "/config/certs/{{ .Env.XMPP_DOMAIN }}.crt";
  30. }
  31. modules_enabled = {
  32. "bosh";
  33. "pubsub";
  34. "ping";
  35. {{ if .Env.XMPP_MODULES }}
  36. "{{ join "\";\n\"" (splitList "," .Env.XMPP_MODULES) }}";
  37. {{ end }}
  38. {{ if .Env.ENABLE_LDAP_AUTH | default "0" | toBool }}
  39. "auth_cyrus";
  40. {{end}}
  41. }
  42. c2s_require_encryption = false
  43. {{ if and (.Env.ENABLE_AUTH | default "0" | toBool) (.Env.ENABLE_GUESTS | default "0" | toBool) }}
  44. VirtualHost "{{ .Env.XMPP_GUEST_DOMAIN }}"
  45. authentication = "anonymous"
  46. c2s_require_encryption = false
  47. {{ end }}
  48. VirtualHost "{{ .Env.XMPP_AUTH_DOMAIN }}"
  49. ssl = {
  50. key = "/config/certs/{{ .Env.XMPP_AUTH_DOMAIN }}.key";
  51. certificate = "/config/certs/{{ .Env.XMPP_AUTH_DOMAIN }}.crt";
  52. }
  53. authentication = "internal_plain"
  54. Component "{{ .Env.XMPP_INTERNAL_MUC_DOMAIN }}" "muc"
  55. modules_enabled = {
  56. "ping";
  57. {{ if .Env.XMPP_INTERNAL_MUC_MODULES }}
  58. "{{ join "\";\n\"" (splitList "," .Env.XMPP_INTERNAL_MUC_MODULES) }}";
  59. {{ end }}
  60. }
  61. storage = "memory"
  62. muc_room_cache_size = 1000
  63. Component "{{ .Env.XMPP_MUC_DOMAIN }}" "muc"
  64. storage = "memory"
  65. modules_enabled = {
  66. {{ if .Env.XMPP_MUC_MODULES }}
  67. "{{ join "\";\n\"" (splitList "," .Env.XMPP_MUC_MODULES) }}";
  68. {{ end }}
  69. {{ if .Env.JWT_ENABLE_TOKEN_AUTH | default "0" | toBool }}
  70. "token_verification";
  71. {{ end }}
  72. }
  73. Component "focus.{{ .Env.XMPP_DOMAIN }}"
  74. component_secret = "{{ .Env.JICOFO_COMPONENT_SECRET }}"