config.json 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. // An (optional) base url the Jibri will join if it is set
  19. "baseUrl": "{{ .Env.PUBLIC_URL }}",
  20. // Jibri will login to the xmpp server as a privileged user
  21. "control_login": {
  22. "domain": "{{ .Env.XMPP_AUTH_DOMAIN }}",
  23. // The credentials for logging in
  24. "username": "{{ .Env.JIBRI_XMPP_USER }}",
  25. "password": "{{ .Env.JIBRI_XMPP_PASSWORD }}"
  26. },
  27. // Using the control_login information above, Jibri will join
  28. // a control muc as a means of announcing its availability
  29. // to provide services for a given environment
  30. "control_muc": {
  31. "domain": "{{ .Env.XMPP_INTERNAL_MUC_DOMAIN }}",
  32. "room_name": "{{ .Env.JIBRI_BREWERY_MUC }}",
  33. // MUST be unic for every instanse
  34. "nickname": "jibri-instanse-{{ .Env.JIBRI_INSTANCE_ID }}"
  35. },
  36. // All participants in a call join a muc so they can exchange
  37. // information. Jibri can be instructed to join a special muc
  38. // with credentials to give it special abilities (e.g. not being
  39. // displayed to other users like a normal participant)
  40. "call_login": {
  41. "domain": "{{ .Env.XMPP_RECORDER_DOMAIN }}",
  42. "username": "{{ .Env.JIBRI_RECORDER_USER }}",
  43. "password": "{{ .Env.JIBRI_RECORDER_PASSWORD }}"
  44. },
  45. // When jibri gets a request to start a service for a room, the room
  46. // jid will look like:
  47. // roomName@optional.prefixes.subdomain.xmpp_domain
  48. // We'll build the url for the call by transforming that into:
  49. // https://xmpp_domain/subdomain/roomName
  50. // So if there are any prefixes in the jid (like jitsi meet, which
  51. // has its participants join a muc at conference.xmpp_domain) then
  52. // list that prefix here so it can be stripped out to generate
  53. // the call url correctly
  54. "room_jid_domain_string_to_strip_from_start": "{{ .Env.JIBRI_STRIP_DOMAIN_JID }}.",
  55. // The amount of time, in minutes, a service is allowed to continue.
  56. // Once a service has been running for this long, it will be
  57. // stopped (cleanly). A value of 0 means an indefinite amount
  58. // of time is allowed
  59. "usage_timeout": "0"
  60. }
  61. ]
  62. }