Skip to content

Commit 497015b

Browse files
emrahcomsaghul
authored andcommitted
jicofo: add JICOFO_AUTH_LIFETIME as environment variable
1 parent f18acb4 commit 497015b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ services:
285285
- ENABLE_RECORDING
286286
- ENABLE_SCTP
287287
- ENABLE_AUTO_LOGIN
288+
- JICOFO_AUTH_LIFETIME
288289
- JICOFO_AUTH_PASSWORD
289290
- JICOFO_AUTH_TYPE
290291
- JICOFO_BRIDGE_REGION_GROUPS

jicofo/rootfs/defaults/jicofo.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{{ $JICOFO_ENABLE_AUTH := .Env.JICOFO_ENABLE_AUTH | default $ENABLE_AUTH | toBool -}}
33
{{ $AUTH_TYPE := .Env.AUTH_TYPE | default "internal" -}}
44
{{ $JICOFO_AUTH_TYPE := .Env.JICOFO_AUTH_TYPE | default $AUTH_TYPE -}}
5+
{{ $JICOFO_AUTH_LIFETIME := .Env.JICOFO_AUTH_LIFETIME | default "24 hours" -}}
56
{{ $ENABLE_SCTP := .Env.ENABLE_SCTP | default "0" | toBool -}}
67
{{ $ENABLE_RECORDING := .Env.ENABLE_RECORDING | default "0" | toBool -}}
78
{{ $ENABLE_OCTO := .Env.ENABLE_OCTO | default "0" | toBool -}}
@@ -36,7 +37,8 @@ jicofo {
3637
type = XMPP
3738
{{ end }}
3839
login-url = "{{ $XMPP_DOMAIN }}"
39-
enable-auto-login={{ $ENABLE_AUTO_LOGIN }}
40+
enable-auto-login = {{ $ENABLE_AUTO_LOGIN }}
41+
authentication-lifetime = {{ $JICOFO_AUTH_LIFETIME }}
4042
}
4143
{{ end }}
4244

0 commit comments

Comments
 (0)