config.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {
  2. "recording_directory":"{{ .Env.JIBRI_RECORDING_DIR }}",
  3. // The path to the script which will be run on completed recordings
  4. {{ if .Env.JIBRI_FINALIZE_RECORDING_SCRIPT_PATH -}}
  5. "finalize_recording_script_path": "{{ .Env.JIBRI_FINALIZE_RECORDING_SCRIPT_PATH }}",
  6. {{ end -}}
  7. "xmpp_environments": [
  8. {
  9. // A friendly name for this environment which can be used
  10. // for logging, stats, etc.
  11. "name": "prod environment",
  12. // The hosts of the XMPP servers to connect to as part of
  13. // this environment
  14. "xmpp_server_hosts": [
  15. "{{ .Env.XMPP_SERVER }}"
  16. ],
  17. "xmpp_domain": "{{ .Env.XMPP_DOMAIN }}",
  18. // Jibri will login to the xmpp server as a privileged user
  19. "control_login": {
  20. "domain": "{{ .Env.XMPP_AUTH_DOMAIN }}",
  21. // The credentials for logging in
  22. "username": "{{ .Env.JIBRI_XMPP_USER }}",
  23. "password": "{{ .Env.JIBRI_XMPP_PASSWORD }}"
  24. },
  25. // Using the control_login information above, Jibri will join
  26. // a control muc as a means of announcing its availability
  27. // to provide services for a given environment
  28. "control_muc": {
  29. "domain": "{{ .Env.XMPP_INTERNAL_MUC_DOMAIN }}",
  30. "room_name": "{{ .Env.JIBRI_BREWERY_MUC }}",
  31. // MUST be unic for every instanse
  32. "nickname": "jibri-instanse-{{ .Env.JIBRI_INSTANCE_ID }}"
  33. },
  34. // All participants in a call join a muc so they can exchange
  35. // information. Jibri can be instructed to join a special muc
  36. // with credentials to give it special abilities (e.g. not being
  37. // displayed to other users like a normal participant)
  38. "call_login": {
  39. "domain": "{{ .Env.XMPP_RECORDER_DOMAIN }}",
  40. "username": "{{ .Env.JIBRI_RECORDER_USER }}",
  41. "password": "{{ .Env.JIBRI_RECORDER_PASSWORD }}"
  42. },
  43. // When jibri gets a request to start a service for a room, the room
  44. // jid will look like:
  45. // roomName@optional.prefixes.subdomain.xmpp_domain
  46. // We'll build the url for the call by transforming that into:
  47. // https://xmpp_domain/subdomain/roomName
  48. // So if there are any prefixes in the jid (like jitsi meet, which
  49. // has its participants join a muc at conference.xmpp_domain) then
  50. // list that prefix here so it can be stripped out to generate
  51. // the call url correctly
  52. "room_jid_domain_string_to_strip_from_start": "{{ .Env.JIBRI_STRIP_DOMAIN_JID }}.",
  53. // The amount of time, in minutes, a service is allowed to continue.
  54. // Once a service has been running for this long, it will be
  55. // stopped (cleanly). A value of 0 means an indefinite amount
  56. // of time is allowed
  57. "usage_timeout": "0"
  58. }
  59. ]
  60. }