2
0

jitsi-meet.cfg.lua 4.0 KB

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