config.json 2.9 KB

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