diff --git a/nomad/jitsi_packs/packs/jitsi_meet_backend/templates/jitsi_meet_backend.nomad.tpl b/nomad/jitsi_packs/packs/jitsi_meet_backend/templates/jitsi_meet_backend.nomad.tpl index d562b483..299ebb09 100644 --- a/nomad/jitsi_packs/packs/jitsi_meet_backend/templates/jitsi_meet_backend.nomad.tpl +++ b/nomad/jitsi_packs/packs/jitsi_meet_backend/templates/jitsi_meet_backend.nomad.tpl @@ -804,8 +804,10 @@ EOF volumes = [ "local/config:/config", "local/jicofo-service-run:/etc/services.d/jicofo/run", +[[- if eq (or (env "CONFIG_jicofo_rtcstats_enabled") "false") "true" ]] "local/11-jicofo-rtcstats-push:/etc/cont-init.d/11-jicofo-rtcstats-push", "local/jicofo-rtcstats-push-service-run:/etc/services.d/60-jicofo-rtcstats-push/run" +[[- end ]] ] } @@ -844,12 +846,15 @@ EOF # jicofo rtcstats push vars JICOFO_ADDRESS = "http://127.0.0.1:8888" JICOFO_VISITORS_REQUIRE_MUC_CONFIG = "[[ env "CONFIG_jicofo_require_muc_config_flag" ]]" +[[- if eq (or (env "CONFIG_jicofo_rtcstats_enabled") "false") "true" ]] RTCSTATS_SERVER="[[ env "CONFIG_jicofo_rtcstats_push_rtcstats_server" ]]" +[[- end ]] INTERVAL=10000 JICOFO_LOG_FILE = "/local/jicofo.log" VISITORS_XMPP_AUTH_DOMAIN="auth.[[ env "CONFIG_domain" ]]" } +[[- if eq (or (env "CONFIG_jicofo_rtcstats_enabled") "false") "true" ]] artifact { source = "https://github.com/jitsi/jicofo-rtcstats-push/releases/download/release-0.0.1/jicofo-rtcstats-push.zip" mode = "file" @@ -858,6 +863,7 @@ EOF archive = false } } +[[- end ]] template { data = <