jibri: params to override statsd host and port

pull/1574/head
Aaron van Meerten 2 years ago committed by Дамян Минков
parent 0569bce51b
commit 94c7060cb5
  1. 2
      jibri.yml
  2. 4
      jibri/rootfs/defaults/jibri.conf

@ -33,6 +33,8 @@ services:
- JIBRI_RECORDING_DIR
- JIBRI_FINALIZE_RECORDING_SCRIPT_PATH
- JIBRI_STRIP_DOMAIN_JID
- JIBRI_STATSD_HOST
- JIBRI_STATSD_PORT
- LOCAL_ADDRESS
- PUBLIC_URL
- TZ

@ -15,6 +15,8 @@
{{ $XMPP_PORT := .Env.XMPP_PORT | default "5222" -}}
{{ $XMPP_SERVER := .Env.XMPP_SERVER | default "xmpp.meet.jitsi" -}}
{{ $XMPP_SERVERS := splitList "," $XMPP_SERVER -}}
{{ $STATSD_HOST := .Env.JIBRI_STATSD_HOST | default "localhost" -}}
{{ $STATSD_PORT := .Env.JIBRI_STATSD_PORT | default "8125" -}}
{{/* assign env from context, preserve during range when . is re-assigned */}}
{{ $ENV := .Env -}}
@ -130,6 +132,8 @@ jibri {
{{ if .Env.ENABLE_STATS_D -}}
stats {
enable-stats-d = {{ .Env.ENABLE_STATS_D }}
host = "{{ $STATSD_HOST }}"
port = {{ $STATSD_PORT }}
}
{{ end -}}
}
Loading…
Cancel
Save