jvb.conf 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. {{ $ENABLE_COLIBRI_WEBSOCKET := .Env.ENABLE_COLIBRI_WEBSOCKET | default "1" | toBool }}
  2. {{ $ENABLE_OCTO := .Env.ENABLE_OCTO | default "0" | toBool }}
  3. {{ $JVB_TCP_PORT := .Env.JVB_TCP_PORT | default "4443" }}
  4. {{ $JVB_TCP_MAPPED_PORT := .Env.JVB_TCP_MAPPED_PORT | default $JVB_TCP_PORT }}
  5. {{ $PUBLIC_URL_DOMAIN := .Env.PUBLIC_URL | default "https://localhost:8443" | trimPrefix "https://" | trimSuffix "/" -}}
  6. {{ $WS_DOMAIN := .Env.JVB_WS_DOMAIN | default $PUBLIC_URL_DOMAIN -}}
  7. {{ $WS_SERVER_ID := .Env.JVB_WS_SERVER_ID | default .Env.LOCAL_ADDRESS -}}
  8. videobridge {
  9. ice {
  10. udp {
  11. port = {{ .Env.JVB_PORT }}
  12. }
  13. tcp {
  14. enabled = {{ not (.Env.JVB_TCP_HARVESTER_DISABLED | default "true" | toBool) }}
  15. port = {{ .Env.JVB_TCP_PORT }}
  16. {{ if not (eq $JVB_TCP_PORT $JVB_TCP_MAPPED_PORT) }}
  17. mapped-port = {{ $JVB_TCP_MAPPED_PORT }}
  18. {{ end }}
  19. }
  20. }
  21. apis {
  22. xmpp-client {
  23. configs {
  24. shard {
  25. HOSTNAME = "{{ .Env.XMPP_SERVER }}"
  26. DOMAIN = "{{ .Env.XMPP_AUTH_DOMAIN }}"
  27. USERNAME = "{{ .Env.JVB_AUTH_USER }}"
  28. PASSWORD = "{{ .Env.JVB_AUTH_PASSWORD }}"
  29. MUC_JIDS = "{{ .Env.JVB_BREWERY_MUC }}@{{ .Env.XMPP_INTERNAL_MUC_DOMAIN }}"
  30. MUC_NICKNAME = "{{ .Env.HOSTNAME }}"
  31. DISABLE_CERTIFICATE_VERIFICATION = true
  32. }
  33. }
  34. }
  35. }
  36. stats {
  37. enabled = true
  38. }
  39. websockets {
  40. enabled = {{ $ENABLE_COLIBRI_WEBSOCKET }}
  41. domain = "{{ $WS_DOMAIN }}"
  42. tls = true
  43. server-id = "{{ $WS_SERVER_ID }}"
  44. }
  45. http-servers {
  46. private {
  47. host = 0.0.0.0
  48. }
  49. public {
  50. host = 0.0.0.0
  51. port = 9090
  52. }
  53. }
  54. {{ if $ENABLE_OCTO -}}
  55. octo {
  56. enabled = true
  57. bind-address = "{{ .Env.JVB_OCTO_BIND_ADDRESS | default "0.0.0.0" }}"
  58. public-address = "{{ .Env.JVB_OCTO_PUBLIC_ADDRESS }}"
  59. bind-port = "{{ .Env.JVB_OCTO_BIND_PORT | default "4096" }}"
  60. region = "{{ .Env.JVB_OCTO_REGION | default "europe" }}"
  61. }
  62. {{ end -}}
  63. }
  64. ice4j {
  65. harvest {
  66. mapping {
  67. stun {
  68. {{ if .Env.JVB_STUN_SERVERS }}
  69. addresses = [ "{{ join "\",\"" (splitList "," .Env.JVB_STUN_SERVERS) }}" ]
  70. {{ end }}
  71. }
  72. }
  73. }
  74. }