jicofo: fix boolean values in configuration file
A type error is thrown when one of these environment variables is defined: - ENABLE_AUTO_OWNER - JICOFO_ENABLE_HEALTH_CHECKS - JICOFO_ENABLE_BRIDGE_HEALTH_CHECKS
This commit is contained in:
committed by
Saúl Ibarra Corretgé
parent
6be198ce74
commit
b555d41a7f
@@ -47,7 +47,7 @@ jicofo {
|
|||||||
|
|
||||||
{{ if .Env.JICOFO_ENABLE_BRIDGE_HEALTH_CHECKS }}
|
{{ if .Env.JICOFO_ENABLE_BRIDGE_HEALTH_CHECKS }}
|
||||||
health-checks {
|
health-checks {
|
||||||
enabled = "{{ .Env.JICOFO_ENABLE_BRIDGE_HEALTH_CHECKS }}"
|
enabled = {{ .Env.JICOFO_ENABLE_BRIDGE_HEALTH_CHECKS | toBool }}
|
||||||
}
|
}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@ jicofo {
|
|||||||
|
|
||||||
conference {
|
conference {
|
||||||
{{ if .Env.ENABLE_AUTO_OWNER }}
|
{{ if .Env.ENABLE_AUTO_OWNER }}
|
||||||
enable-auto-owner = "{{ .Env.ENABLE_AUTO_OWNER }}"
|
enable-auto-owner = {{ .Env.ENABLE_AUTO_OWNER | toBool }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Env.JICOFO_CONF_INITIAL_PARTICIPANT_WAIT_TIMEOUT }}
|
{{ if .Env.JICOFO_CONF_INITIAL_PARTICIPANT_WAIT_TIMEOUT }}
|
||||||
@@ -92,7 +92,7 @@ jicofo {
|
|||||||
// Configuration for the internal health checks performed by jicofo.
|
// Configuration for the internal health checks performed by jicofo.
|
||||||
health {
|
health {
|
||||||
// Whether to perform health checks.
|
// Whether to perform health checks.
|
||||||
enabled = "{{ .Env.JICOFO_ENABLE_HEALTH_CHECKS }}"
|
enabled = {{ .Env.JICOFO_ENABLE_HEALTH_CHECKS | toBool }}
|
||||||
}
|
}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user