Skip to content

Commit 76a16a8

Browse files
committed
jvb: use modern config for ice4j
1 parent 18ac85b commit 76a16a8

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

jvb/rootfs/defaults/jvb.conf

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,21 @@ ice4j {
6868
harvest {
6969
mapping {
7070
stun {
71-
{{ if .Env.JVB_STUN_SERVERS }}
71+
{{ if .Env.JVB_STUN_SERVERS -}}
7272
addresses = [ "{{ join "\",\"" (splitList "," .Env.JVB_STUN_SERVERS) }}" ]
73-
{{ end }}
73+
{{ else -}}
74+
enabled = false
75+
{{ end -}}
7476
}
77+
78+
static-mappings = [
79+
{{ if .Env.DOCKER_HOST_ADDRESS -}}
80+
{
81+
local-address = "{{ .Env.LOCAL_ADDRESS }}"
82+
public-address = "{{ .Env.DOCKER_HOST_ADDRESS }}"
83+
}
84+
{{ end -}}
85+
]
7586
}
7687
}
7788
}

jvb/rootfs/defaults/sip-communicator.properties

Lines changed: 0 additions & 5 deletions
This file was deleted.

jvb/rootfs/etc/cont-init.d/10-config

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ if [[ "$JVB_AUTH_PASSWORD" == "$OLD_JVB_AUTH_PASSWORD" ]]; then
1414
exit 1
1515
fi
1616

17-
tpl /defaults/sip-communicator.properties > /config/sip-communicator.properties
1817
if [[ -f /config/custom-sip-communicator.properties ]]; then
19-
cat /config/custom-sip-communicator.properties >> /config/sip-communicator.properties
18+
cat /config/custom-sip-communicator.properties > /config/sip-communicator.properties
2019
fi
2120

2221
tpl /defaults/logging.properties > /config/logging.properties

0 commit comments

Comments
 (0)